Re: ssh in shell

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 09/27/05


Date: Tue, 27 Sep 2005 17:29:59 GMT

Sascha Kaddatz <ssh.100.rendryn@spamgourmet.com> wrote:
> Yes I get output on my screen, but the rediracation does not work.

> root> ssh ... "/etc"
> bash:/ /etc: is a directory

> root> ssh ... "/etc" >&test.dat
> bash:/ /etc: is a directory

I didn't see that you mentioned what shell you're using, but I'm
assuming it's a "csh" stlye one. I can't reproduce your output.

$ tcsh
> ssh server "/etc"
ddunham@server's password:
/etc: Permission denied.
> ssh server "/etc" >& /tmp/foobar
ddunham@server's password:
> cat /tmp/foobar
/etc: Permission denied.
>

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >