Mail Archives: djgpp/1999/07/19/08:41:06
Nate Eldredge wrote:
>
> Mohammad Hossein Manshaee wrote:
[snip]
> > another question:
> >
> > I have many errors with the compile my file.
> > I want to see all the errors but they are move fast on the screen.
> > What can I do?
>
> Look at the documentation for `redir'.
Or, if you are compiling from the BASH prompt, you can redirect both
standard output and standard error to a file, as follows:
gxx @response-file >scrout.txt 2>&1
This sends output intended for the standard error stream (file
descriptor 2) to the standard output stream (file descriptor 1), and
redirects standard output to a file called "scrout.txt". The result is,
all output from "gxx @response-file" that would have gone to the screen
ends up in the file "scrout.txt". This can be viewed in a text editor.
You could alternatively send all output to "less", which shows its input
one screen at a time:
gxx @response-file 2>&1 |less
(again, from BASH). "less" is superior to DOS's own "more", and is in
DJGPP package lss332. With "less", you scroll forwards a page by
pressing SPACE, back a page by pressing "b", and quit by pressing "q".
--
Daniel Barker.
- Raw text -