Date: Fri, 19 Dec 1997 14:28:47 +0100 (MET) From: Olivier Perron To: Theuzifan Cc: djgpp AT delorie DOT com Subject: Re: gcc output redirection In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 19 Dec 1997, Theuzifan wrote: > Hi! > > How can I redirect the output error messages to a file (it writes it to > stderr not to stdout, I believe), or if it generates an .err file like > Watcom. I think no, but it may be a good idea for future releases. In > linux it's not needed, as it can scroll the window up and down, but in > DOS... > Thank in advance! > > Try the redir utility which come with djgpp. Take a look at the FAQ , sections 6.10, 9.2, 16.6 Or if you use bash, use the built-in redirection mecanisms: my_command 1>toto.log 2>&1 Olivier.