Mail Archives: djgpp/1997/12/19/08:30:33

Date: Fri, 19 Dec 1997 14:28:47 +0100 (MET)
From: Olivier Perron <perron AT art DOT alcatel DOT fr>
To: Theuzifan <uzi AT simauria DOT upv DOT es>
Cc: djgpp AT delorie DOT com
Subject: Re: gcc output redirection
In-Reply-To: <>
Message-Id: <Pine.GSO.3.96.971219142419.10602F-100000@rtbsci143s>
Mime-Version: 1.0

On Fri, 19 Dec 1997, Theuzifan wrote:

> Hi!
> How can I redirect the output error messages to a file (it writes it to
> stderr not to stdout, I believe), or if it generates an .err file like
> Watcom. I think no, but it may be a good idea for future releases. In
> linux it's not needed, as it can scroll the window up and down, but in
> DOS...
> Thank in advance!

Try the redir utility which come with djgpp.
Take a look at the FAQ , sections 6.10, 9.2, 16.6

Or if you use bash, use the built-in redirection mecanisms:
my_command 1>toto.log 2>&1


- Raw text -

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