www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/02/18:54:28

Date: Tue, 2 May 95 17:25:59 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: wjs AT vision5 DOT cs DOT sunysb DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: messages scroll off screen
Reply-To: babcock AT cfa DOT harvard DOT edu

> I am running the dj gcc compiler under dos.  In a certain program, so many
> compiler error messages are generated that the relevant first few messages
> scroll off the screen and are lost.  Redirecting the output does not help:
> the messages continue to come to the screen.

The messages are sent to stderr.  Possible solutions are in the FAQ
(faq100.zip): 
1) You can put ``2r1'' into your GO32 environment variable,
   which will redirect stderr to stdout, and redirect stdout to
   a file by appending ``> file''to your command line.  See
   question 5.1 above.

2) You can use a shell smarter then COMMAND.COM, such as 4DOS,
   which knows how to redirect standard error stream to a file.
   4DOS is shareware and can be found, e.g., on SimTel mirrors.

3) You can add ``core file'' to your GO32 environment variable,
   to have your traceback written to the named file.  This only
   works for the exception traceback redirection (useful when
   running graphics applications).

4) You can run your program under any one of the programs which
   save the output of programs they spawn in a file.  I suggest
   using a program called SCRIPT, which is similar to its Unix
   namesake.  It has an advantage of saving everything which
   goes to screen AND showing it on the screen at the same
   time.  SCRIPT can be found on SimTel mirrors as SCRIPT11.ZIP
   (e.g., oak.oakland.edu:/SimTel/msdos/screen/script11.zip).

- Raw text -


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