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
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
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
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();
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
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
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
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
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"
9 matches
Mail list logo