This is the mail archive of the
mailing list for the Cygwin project.
Issue when running non-cygwin programs with rsh
- From: <bogossia at nerim dot net>
- To: <cygwin at cygwin dot com>
- Date: Thu, 27 Feb 2003 23:08:27 CET
- Subject: Issue when running non-cygwin programs with rsh
- Reply-to: <bogossia at nerim dot net>
I've noticed that stdout doesn't seem to be properly
redirected when a non-cygwin program is executed via rsh.
You can easily observe the problem. For that, compile your
favorite hello world program with and without the no-cygwin
home $ gcc -o hello_cygwin hello.c
home $ gcc -o hello_nocygwin -mno-cygwin hello.c
Then run the two binaries with rsh:
home $ rsh localhost hello_cygwin
home $ rsh localhost hello_nocygwin
As you can see, the stdoud of the non-cygwin program is not
redirected to the remote terminal. This can be worked around
by piping stdout to the cat command:
home $ rsh localhost "hello_nocygwin | cat"
Webmail Nerim, http://www.nerim.net/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html