From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: STDERR Date: Tue, 05 Nov 1996 22:23:57 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 20 Message-ID: <32802EFD.31B@cs.com> References: <327FE3E5 DOT 86A AT cyberramp DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp102.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: shahaba AT cyberramp DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Shahab Azmoudeh wrote: > > Can someone tell me how I can redirect STDERR to a file. The redirect > chracter (>) only works for STDIO. Please download and read the DJGPP FAQ (v2/faq202b.zip). This question is addressed in section 6.10. Short answer: Use the 'redir' program that comes with DJGPP as follows: redir -e stderr.out myprog ... The '-e' option tells redir to redirect stderr to the indicated file. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Plan: To find ANYONE willing to | http://www.cs.com/fighteer | | play Descent 2 on DWANGO! | Tagline: | ---------------------------------------------------------------------