Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
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

Expected Output:

Actual Output:
line1 line2

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

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 06: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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.