delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/02/01:22:44

From: mark AT solcom DOT co DOT uk
Subject: Re: Redirect the stderr GCC stream to file, executing from Ms-Dosshell
2 Oct 1997 01:22:44 -0700 :
Message-ID: <Chameleon.875779769.mark.cygnus.gnu-win32@sulu>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com, cgf AT bbc DOT com

--- On Wed, 1 Oct 1997 15:17:27 GMT  Chris Faylor 
<cgf AT bbc DOT com> wrote:

>In article 
<01BCCE53 DOT F7289290 AT gater DOT krystalbank DOT msk DOT ru>,
>Sergey Okhapkin  <sos AT prospect DOT com DOT ru> wrote:
>>Chris Faylor wrote:
>>> In article <199709301048 DOT MAA00599 AT ammi DOT mclink DOT it>,
>>> Giandomenico De Sanctis <mc4420 AT mclink DOT it> wrote:
>>> >How to redirect the stderr stream to a file, 
running GCC from MS-Dos
>>> >command prompt, and not from Unix-like shell as 
bash??
>>> 
>>> gcc whatever 2>wherever
>>
>>This works with NT4.0 cmd.exe only, but not with 
95's command.com.
>
>Right.  Sorry to have not mentioned that.
>
>Other alternatives are:
>
>1) Use 4DOS ( http://www.jpsoft.com ), which allows 
'>&' for redirection.
>
>2) Write a small program to redirect stderr to stdout 
and run its
>   arguments.
>
>3) bash -c 'exec gcc whatever 2>wherever'
>-- 
>http://www.bbc.com/	cgf AT bbc DOT com		
	"Strange how unreal
>VMS=>UNIX Solutions	Boston Business 
Computing	 the real can be."
>-
>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".
>

-----------------End of Original 
Message-----------------

Can you give me a quick hint what the small program 
mentioned in point no. 2 would look like.
How would I invoke this to re-direct the output of GCC 
to a file.

Thanks,
Mark.
-
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