Date: Fri, 6 Jun 1997 11:45:59 -0400 (EDT) From: "Art S. Kagel" To: Roberto Henriquez Laurent Cc: djgpp AT delorie DOT com Subject: Re: newbie question In-Reply-To: <33967568.86D22F4A@alumnos.inf-cr.uclm.es> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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