Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.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" <avr_fan@hotmail.com>
cc: cygwin@sourceware.cygnus.com
Reply-to: hgm@lanl.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." <hgm@lanl.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

