This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stderr/stdout under console


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]