From: mfb AT mbunix DOT mitre DOT org (Michael F Brenner) Newsgroups: comp.os.msdos.djgpp Subject: Re: How do I re-direct errors/warnings to file? Date: 19 Jan 1997 01:36:49 GMT Organization: The MITRE Corporation, Bedford Mass. Lines: 10 Message-ID: <5brtrh$dn9@top.mitre.org> References: <5brk34$q1q AT news DOT interlog DOT com> <32E18CB9 DOT 6BD8 AT cs DOT com> NNTP-Posting-Host: mbunix.mitre.org To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Problem with this answer: the exit codes and exceptions thrown by the program being redirected do not seem to be transmitted through redir. This makes it unusable in situations where you wish to control execution of the next command based on success of the previous command. Alternate answer: possibly reconsider the decision to put errors to stderr, which, in DOS out of the box, appears to be more suitable for fatal errors not diagnostic messages from compilers, etc.