Mail Archives: djgpp/1997/06/06/11:52:26
On Thu, 5 Jun 1997, Roberto Henriquez Laurent wrote:
> Wilson Wang Shun Leung wrote:
> > This is a newbie question. Sorry if it is too trivial.
> > How to capture error/warning message from command line
> > (in DOS)? I tried :
> > gcc -c prog.c | more
> > But the piping doesn't work.
DJGPP comes with a utility to do this since COMMAND.COM cannot. It is
redir -eo gcc -c prog.c | more
redir -eo gcc -c prog.c >file
There are more options including specifying the log file as an option to
redir. Check the Info pages.
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -