Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Linux
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 3rd, 2010, 02:47 AM
Authorized User
 
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ssh read output as it is

With the help of ssh i would like to execute script and redirect the output in my local file

$ssh -i privatekkeypair1.pem root@<host> -C sh /mnt/monitor.sh >> /root/imgManagementOutput.txt

source: monitor.sh
echo `cat /mnt/imageOutput.txt`

Source: /mnt/imageOutput.txt
line1
line2

Expected Output:
line1
line2

Actual Output:
line1 line2

I am looking for the output should be as "Expected Output" as it is not in a single line...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh - execute the script remotely / File not found: '' cloudsuser Linux 0 May 28th, 2010 02:00 AM
API for Secure FTP (SFTP/SSH) redbudval Pro VB.NET 2002/2003 2 December 7th, 2007 05:27 PM
Read Only Form Is not Read only lryckman Access VBA 3 June 12th, 2007 06:30 AM
tell me the output abdul_owiusa C# 3 May 10th, 2007 04:25 AM
how to get this output? Haroldd SQL Language 2 July 16th, 2003 07:24 AM



All times are GMT -4. The time now is 01:56 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.