bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh: redirect the output.


From: Bob Proulx
Subject: Re: ssh: redirect the output.
Date: Tue, 27 Jan 2009 14:28:19 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

garp28 wrote:
> ssh -T ${SRI} <<EOF
> su - simrun -c "/tmp/stop_sri.sh"
> EOF
> 
> I would like to redirect the output of the  stop_sri.sh into a local log.
> How can I do that?

Use '>' to redirect the outout.  For example:

ssh -T ${SRI} >stop_sri.log <<EOF
su - simrun -c "/tmp/stop_sri.sh"
EOF

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]