From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Capturing DJGPP mesages to a file Date: Thu, 07 Aug 1997 19:30:33 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 26 Message-ID: <33EA2259.4B46@cs.com> References: <33EA2692 DOT 395D AT popd DOT ix DOT netcom DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp105.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Yojimbo wrote: > > I'm very new to DJGPP, and I've been trying to find a way to capture the > messages to a file. After a lot of dinking around, I've got a way that > works very nicely, so I thought I'd pass it along. It involves the use > of a very nice utility called SCRIPT. Script works fine, and is in fact suggested by the DJGPP documentation. However, a much easier way to handle stderr redirection is built into the DJGPP distribution; it's called 'redir'. Look it up in the FAQ; the syntax is as follows: redir -o err.log -eo gcc [...] The '-o err.log' tells redir to redirect standard output to the file 'err.log', and '-eo' tells it to redirect standard error to the same place. The rest of the command line gets executed. Type 'redir' without arguments for additional options. -- --------------------------------------------------------------------- | John M. Aldrich | "To be 'matter of fact' about the | | aka Fighteer I | world is to blunder into fantasy-- | | mailto:fighteer AT cs DOT com | and dull fantasy at that, as the real| | http://www.cs.com/fighteer | world is strange and wonderful." -LL | ---------------------------------------------------------------------