Subject: Re: Redirect the stderr GCC stream to file, executing from Ms-Dosshell
From: [email-masked] (Chris Faylor)

1 Oct 1997 08:38:45 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: [email-masked]
To: [email-masked]

In article <[email-masked]>,
Sergey Okhapkin  <[email-masked]> wrote:
>Chris Faylor wrote:
>> In article <[email-masked]>,
>> Giandomenico De Sanctis <[email-masked]> 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/	[email-masked]			"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
"[email-masked]" with one line of text: "help".