delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/06/22/13:11:21

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Re: redirect error mesgs
To: jhartman AT vax DOT awi-bremerhaven DOT dbp DOT de (jhartman)
Date: Mon, 22 Jun 92 9:29:26 PDT
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Mailer: Elm [revision: 66.25]

> Is there a way to redirect the error and warning mesgs into a file ?
> Apparently gcc sends it to stderr, which DOS isn't able to redirect.
> Or ist it ?  

Others have pointed out that you can use the GO32 environment variable
to redirect stderr.  This is needed because COMMAND.COM does not know
how to do the redirect.

Other shells for DOS are smarter than COMMAND.COM, and can redirect
stderr for you.  I use MS_SH200 from SIMTEL20.  It's similar to the
UNIX ksh, and it allows you to redirect stderr like you would on UNIX.
I believe the popular 4DOS replacement for COMMAND.COM will also allow
you to redirect stderr.
--
				Eric Backus
				ericb%hplsla AT hplabs DOT hp DOT com
				(206) 335-2495

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019