stdout redirect

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Can you redirect the stdout of a program being run over ssh to any
indiscriminate fp?


Re: stdout redirect

Quoted text here. Click to load it

I'm not sure if this is an SSH question or something else.  

You could try this...

ssh host "program argument" >&18

but your shell will probably complain that there's nothing connected to
fd 18.

What are you trying to do?

Darren Dunham                                 
Senior Technical Consultant         TAOS   /
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

Re: stdout redirect

Darren Dunham wrote:

Quoted text here. Click to load it

I am using ssh to execute a program.  I would like that program's stdout to
go to a file.  I know I can easily edit the program to do this however I do
not wish to allow the program to know how it is executed.  When it is
executed by the user locally I want the output to go to the screen and when
it is executed remotely I want it logged.

Re: stdout redirect

On Thu, 01 Jul 2004 09:21:58 -0700, Richard Harris wrote:
Quoted text here. Click to load it

 did you try       program > /somewhere/file.txt

Site Timeline