delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/30/13:43:35

From: curt AT me DOT umn DOT edu (Curtis L. Olson)
Subject: Re: Redirect the stderr GCC stream to file, executing from Ms-Dos shell
30 Sep 1997 13:43:35 -0700 :
Message-ID: <199709302031.PAA26645.cygnus.gnu-win32@kenai.me.umn.edu>
References: <199709301048 DOT MAA00599 AT ammi DOT mclink DOT it>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com
Cc: mc4420 AT mclink DOT it

Giandomenico De Sanctis writes:
> How to redirect the stderr stream to a file, running GCC from MS-Dos
> command prompt, and not from Unix-like shell as bash??

I've had some luck if the actual executable is called from a batch
file:

batchfile.bat > output

.... where batchfile.bat calls the compiled program.

Curt.
-- 
Curtis Olson                        Systems Administrator
curt AT me DOT umn DOT edu                     University of MN, ME Dept.
http://www.menet.umn.edu/~curt      Try Linux!
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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