This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: stderr/stdout under console
- To: "Dave Arnold" <avr_fan at hotmail dot com>
- Subject: Re: stderr/stdout under console
- From: "Harry G. McGavran Jr." <hgm at lanl dot gov>
- Date: Thu, 29 Jun 2000 10:31:32 -0600
- cc: cygwin at sourceware dot cygnus dot com
- Reply-to: hgm at lanl dot gov
On Wed, 28 Jun 2000 16:51:44 -0700 "Dave Arnold" wrote:
> I don't know what causes this but what file does it write to?
> I didn't know there was a stderr file? does it create this file?
>
> /dAVe
>
If one redirects standard out (under a windows MS-DOS window, with
"program >file" then, BOTH fprintf(stdout, ...) AND fprintf(stderr, ...)
get written in "file" -- with specifically redirecting stderr,
in this case stderr should go to the console, but doesn't.
Under bash it does.
> -----Original Message-----
> From: Harry G. McGavran Jr. <hgm@lanl.gov>
> To: cygwin@sourceware.cygnus.com <cygwin@sourceware.cygnus.com>
> Date: Wednesday, June 28, 2000 12:16 PM
> Subject: stderr/stdout under console
>
>
> >
> >When I run a console type cygwin program under a DOS
> >window in Windows98SE with command.com as the shell
> >fprintf(stderr, ...) seems to go to stdout.
> >
> >If I redirect the standard output to a file, the fprintf(stderr, ...)
> >stuff goes to the file instead of the console ---
> >
> >If I run the same program under bash, it works fine.
> >
> >Does anyone know why this is?????
> >
> > Harry
> >
> >
> >
> >--
> >
> >
> >Harry
> >
> >Internet e-mail: hgm@lanl.gov (Harry G. McGavran, Jr.)
> >Los Alamos National Laboratory, Los Alamos, New Mexico 87545
> >Phone: 505/667-4050
> >
> >
> >
> >
> >--
> >Want to unsubscribe from this list?
> >Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> >
>
--
Harry
Internet e-mail: hgm@lanl.gov (Harry G. McGavran, Jr.)
Los Alamos National Laboratory, Los Alamos, New Mexico 87545
Phone: 505/667-4050
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com