www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/28/10:47:00

From: peuha AT cc DOT helsinki DOT fi (Esa A E Peuha)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: rhide/call trace back - small question
Date: 28 Feb 1997 10:16:26 GMT
Organization: University of Helsinki
Lines: 17
Message-ID: <5f6b9q$8vt@oravannahka.Helsinki.FI>
References: <330D08FC DOT 4034 AT mbnet DOT mb DOT ca> <330EC4AB DOT 77E1 AT cs DOT com> <330F813E DOT 77E1 AT mbnet DOT mb DOT ca>
Reply-To: Esa DOT Peuha AT helsinki DOT fi
NNTP-Posting-Host: kruuna-ether.helsinki.fi
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alex Demko (ademko AT mbnet DOT mb DOT ca) wrote:

: Great, thanks! Also, is there a way to redirect stderr under plain DOS
: (ie. someone who doesn't have djgpp, bash and other such utils
: installed)? Again, rhide does this so maybe it's built into djgpp
: executables (like globbing)

Yes, it's possible, and no, it's not a djgpp feature. If you read the
redir docs carefully, you will notice how this is done. So to redirect
stderr, you just need to close the stderr file handle, then open it to
point at the file you want the stderr output to go. But why you couldn't
use redir with any DOS program?

--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019