www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/24/13:11:41

Date: Thu, 24 Jun 93 12:04:16 CDT
From: "Jeremy Mathers" <pynq AT midway DOT uchicago DOT edu>
To: peprbv AT cfa0 DOT harvard DOT edu
Subject: Re: Redirecting gcc output.
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>> A standard redirect (">") doesnt work (because gcc outputs
>> to stderr, perhaps?).  Can I do this in a DOS environ?

>Someone pointed out that you can use an environment variable to tell gcc to
>send stderr to stdout so that redirection works.  Instead, I use a small
>utility to do the same thing.  There are several in the msdos.sysutl directory
>at Simtel20 mirrors, including REDIR.ZIP.  Usage is simply
>    redir progname parameters >file

The best solution is to get an MSDOS port of Unix Script.  I have been using
the one in SCRIPT11.ZIP (available from Simtel, et al) for many years now.

- Raw text -


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