Re: SSH Command Formating w/Output pipe

From: Ansgar -59cobalt- Wiechers (usenet-2005_at_planetcobalt.net)
Date: 11/17/05


Date: 17 Nov 2005 17:34:23 GMT

Doug Luurs wrote:
> ssh cpu1@xxx.xxx.xxx.xxx "ls -l /tmp/isthefilethere.txt" > /tmp/output
> (On CPU2)
>
> This works, but the command doesn't get piped in the /tmp/output.
>
> Am I missing something along the way, or did I forget a '-something' ?

AFAICS the command should work as expected. Do you get the correct
output on STDOUT when omitting the redirection (a pipe is something
completely different)? Anything in the logs, maybe?

cu
59cobalt

-- 
"Another option [for defragmentation] is to back up your important files,
erase the hard disk, then reinstall Mac OS X and your backed up files."
--http://docs.info.apple.com/article.html?artnum=25668


Relevant Pages