www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/10/22:25:30

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Redirection
Date: Mon, 10 Feb 1997 18:53:44 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 27
Message-ID: <32FFDF38.1BF@cs.com>
References: <32FD4E92 DOT FE3 AT post3 DOT tele DOT dk>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp204.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Anders "ARGH" Straadt wrote:
> 
> hmmm, i'm trying to make this makefile, and i'm getting, like, 10000
> errors... but that's not the problem... the problem is to output all
> those sucky errors to a file instead of the screen..... in
> fully-dos-compatible programs i can use > for redirection... like
> dir>direc.txt gives me the output in direc.txt, but it wont work for
> gcc.exe or make.exe. SO HOW THE F*** DO I MAKE REDIRECTION ON DJGPP
> COMMANDS?

The answer is in the FAQ (v2/faq210b.zip), section 6.10.  Short answer: 
use the 'redir' program that comes with the standard djgpp distribution
like so:

  redir -o gcc.log -eo make

The problem is that standard DOS using COMMAND.COM is incapable of
redirecting output that is sent to 'stderr'.  Besides using 'redir', you
could try obtaining a smarter command interpreter such as 4DOS, Caldera
OpenDOS, or the MS-DOS port of 'bash'.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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