Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <200006291631.KAA04846@moki.lanl.gov> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.4 #8[UCI] To: "Dave Arnold" cc: cygwin AT sourceware DOT cygnus DOT com Reply-to: hgm AT lanl DOT gov Subject: Re: stderr/stdout under console In-reply-to: <007701bfe15b$d1ccd9c0$46241004@darnold-home.sybase.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 29 Jun 2000 10:31:32 -0600 From: "Harry G. McGavran Jr." 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. > To: cygwin AT sourceware DOT cygnus DOT 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 AT lanl DOT 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 AT sourceware DOT cygnus DOT com > > > -- Harry Internet e-mail: hgm AT lanl DOT 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 AT sourceware DOT cygnus DOT com