Mail Archives: djgpp/1997/08/08/01:35:16
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 |
---------------------------------------------------------------------
- Raw text -