Re: Redirect stdout from SSH

2004-08-08 Thread David E. Meier
Thank you Igor for your helpful explanation. The '-n' flag does the trick, too. And looking at the man pages now just makes me wonder why I did not RTFM well enough before! ;-) Dave. > > By default, ssh is an interactive program, even if the program it invokes > isn't. Therefore, ssh contains so

Re: Redirect stdout from SSH

2004-08-08 Thread Igor Pechtchanski
On Fri, 6 Aug 2004, David E. Meier wrote: > > At 01:03 PM 8/3/2004, you wrote: > >>Hello list, > >> > >>I am writing a program in C# that calls some cygwin programs and redirects > >>the standard output and error to a textbox. This works excellent with > >>calls like "ls -al" or rsync. > >> > >>Ho

Re: Redirect stdout from SSH

2004-08-06 Thread Larry Hall
At 12:00 PM 8/6/2004, you wrote: >OK, short overview: I am working on a program in C# that needs to run some >commands on a remote machine and therefore I use SSH. The output will then >be written into a textbox. In C# you can run a command like this: > >Process MyProcess = new Process(); >ProcessS

Re: Redirect stdout from SSH

2004-08-06 Thread David E. Meier
OK, short overview: I am working on a program in C# that needs to run some commands on a remote machine and therefore I use SSH. The output will then be written into a textbox. In C# you can run a command like this: Process MyProcess = new Process(); ProcessStartInfo psi = new ProcessStartInfo();

Re: Redirect stdout from SSH

2004-08-06 Thread Erik Weibust
I am confused as to what you are trying to do. I had no problem redirecting both std out and std err with ssh. I used this: $ ssh -v uswgw1 > ~/ssh_outfile.txt 2>&1 Obviously, the problem is that you never get your prompt back after issuing that cmd. If you provide more insight into what your t

Re: Redirect stdout from SSH

2004-08-06 Thread Larry Hall
At 09:43 AM 8/6/2004, you wrote: >I got it working when standard input is also set to be redirected. Does >anyone have an explanation of this? No, sorry. At least not without some details of what you did. Like I said, the simple example I put together worked fine for me so it seems clear that t

Re: Redirect stdout from SSH

2004-08-06 Thread David E. Meier
I got it working when standard input is also set to be redirected. Does anyone have an explanation of this? Dave > At 01:03 PM 8/3/2004, you wrote: >>Hello list, >> >>I am writing a program in C# that calls some cygwin programs and >> redirects >>the standard output and error to a textbox. This w

Re: Redirect stdout from SSH

2004-08-03 Thread Larry Hall
At 01:03 PM 8/3/2004, you wrote: >Hello list, > >I am writing a program in C# that calls some cygwin programs and redirects >the standard output and error to a textbox. This works excellent with >calls like "ls -al" or rsync. > >However, I cannot read the output generated by SSH. When I issue a com

Redirect stdout from SSH

2004-08-03 Thread David E. Meier
Hello list, I am writing a program in C# that calls some cygwin programs and redirects the standard output and error to a textbox. This works excellent with calls like "ls -al" or rsync. However, I cannot read the output generated by SSH. When I issue a command like "ssh [EMAIL PROTECTED] ls -al"