www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/13/07:03:34

Message-ID: <32B1D1A7.59D5@mit.co.za>
Date: Fri, 13 Dec 1996 13:59:03 -0800
From: eugenep AT mit DOT co DOT za (Evgeni Popov)
Reply-To: eugenep AT mit DOT co DOT za
Organization: MAST Information Technologies
MIME-Version: 1.0
To: djgpp AT delorie DOT com
CC: camorgan AT amoco DOT com
Subject: Re: Simple question...

On Thu, 12 Dec 96 08:45:35 Clayton Morgan (camorgan AT amoco DOT com) wrote:

> ... (under DOS 6.21) ...
> I have tried every way I know to redirect the compiler diagnostic 
> messages to a file; e.g.,  
>
>   gcc test.c -o test.exe >test.lst,
>   gcc test.c -o test.exe 2>test.lst,
> etc.,
>
> but all my redirection efforts seem to be ignored; the output still 
> comes back to the screen. 

This problem relates to the redirection of the standard error device.
A remedy can be found in the 4DOS command shell
(ftp://garbo.uwasa.fi/pc/cmd4dos/4dos552.zip), 
and its redirection options supported:

  >& filename   To redirect standard output and standard error to a
                file or device
  >&> filename  To redirect standard error only to a file or device

--
Evgeni Popov

- Raw text -


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