Re: rshd and stdout

2004-01-22 Thread Pierre Bogossian
David Reid wrote:
>I'm using rsh to run a command on a remote machine.
>But I only get output back from stderr, not from 
>stdout. Here is my sample program and the output:
>
>   main() {
>  fprintf(stdout, "stdout\n");
>  fprintf(stderr, "stderr\n");   
>   }
>
>   $ rsh machine1 ./main
>   stderr
>
>How can I get stdout back to the rsh client?
>
>Note: cygwin rshd is running on a windows box, rsh can
>
>be on windows or linux, the result is the same.
>It works as I would expect when using the linux rshd 
>on a linux box (it prints stdout and stderr)

Did you compile your sample program with the -mno-cygwin flag or
with a non-cygwin compiler ?
I'm asking because this problem reminds me of an issue I reported
last year (http://sources.redhat.com/ml/cygwin/2003-02/msg02224.html)
and which is still unresolved (actually, I don't think that
anyone really paid attention to my report ;-).

Anyway, running cygwin and non-cygwin binaries of your
sample program using rsh gives interesting results:

$ rsh localhost main_cygwin
stdout
$ rsh localhost main_nocygwin
stderr

Pierre
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: rshd and stdout

2004-01-09 Thread Larry Hall
At 11:53 AM 1/9/2004, David Reid you wrote:
>I'm using rsh to run a command on a remote machine.
>But I only get output back from stderr, not from 
>stdout. Here is my sample program and the output:
>
>   main() {
>  fprintf(stdout, "stdout\n");
>  fprintf(stderr, "stderr\n");   
>   }
>
>   $ rsh machine1 ./main
>   stderr
>
>How can I get stdout back to the rsh client?
>
>Note: cygwin rshd is running on a windows box, rsh can
>
>be on windows or linux, the result is the same.
>It works as I would expect when using the linux rshd 
>on a linux box (it prints stdout and stderr)


Make sure you're running Cygwin's rsh first.  Also, visit:


>Problem reports:   http://cygwin.com/problems.html

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



rshd and stdout

2004-01-09 Thread David Reid
I'm using rsh to run a command on a remote machine.
But I only get output back from stderr, not from 
stdout. Here is my sample program and the output:

   main() {
  fprintf(stdout, "stdout\n");
  fprintf(stderr, "stderr\n");   
   }

   $ rsh machine1 ./main
   stderr

How can I get stdout back to the rsh client?

Note: cygwin rshd is running on a windows box, rsh can

be on windows or linux, the result is the same.
It works as I would expect when using the linux rshd 
on a linux box (it prints stdout and stderr)

-David

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/