delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/06/11:52:26

Date: Fri, 6 Jun 1997 11:45:59 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Roberto Henriquez Laurent <shl24634 AT alumnos DOT inf-cr DOT uclm DOT es>
Cc: djgpp AT delorie DOT com
Subject: Re: newbie question
In-Reply-To: <33967568.86D22F4A@alumnos.inf-cr.uclm.es>
Message-Id: <Pine.D-G.3.91.970606114403.12912F@dg1>
Mime-Version: 1.0

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.exe:

redir -eo gcc -c prog.c | more

OR

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 -


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