Mail Archives: djgpp/1996/12/13/07:03:34
On Thu, 12 Dec 96 08:45:35 Clayton Morgan (camorgan AT amoco DOT com) wrote:
> ... (under DOS 6.21) ...
> I have tried every way I know to redirect the compiler diagnostic
> messages to a file; e.g.,
>
> gcc test.c -o test.exe >test.lst,
> gcc test.c -o test.exe 2>test.lst,
> etc.,
>
> but all my redirection efforts seem to be ignored; the output still
> comes back to the screen.
This problem relates to the redirection of the standard error device.
A remedy can be found in the 4DOS command shell
(ftp://garbo.uwasa.fi/pc/cmd4dos/4dos552.zip),
and its redirection options supported:
>& filename To redirect standard output and standard error to a
file or device
>&> filename To redirect standard error only to a file or device
--
Evgeni Popov
- Raw text -