home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!usc!sdd.hp.com!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!bx304
- From: bx304@cleveland.Freenet.Edu (Jeff Epler)
- Subject: Re: How can I redirect STDERR into a file ?
- Message-ID: <1992Aug17.154904.22461@usenet.ins.cwru.edu>
- Sender: news@usenet.ins.cwru.edu
- Nntp-Posting-Host: slc5.ins.cwru.edu
- Reply-To: bx304@cleveland.Freenet.Edu (Jeff Epler)
- Cc: tamari@bimacs.bitnet
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- References: <4117@bimacs.BITNET>
- Date: Mon, 17 Aug 92 15:49:04 GMT
- Lines: 26
-
-
- In a previous article, tamari@bimacs.BITNET (tamari zvi) says:
-
- >Hi,
- >
- > So, the question is how can I redirect these error messages into a file ?
- > (it does'nt have to be the output file.
-
- The command CTTY could be used in a batch file. Its effect is to
- redirect input and output, including stderr. Something like this:
-
- ctty errors.txt
- %1 %2 %3 %4 %5 %6 %7 %8 %9 <con >con
- ctty con
-
- This would cause the errors to be redirected to 'errors.txt' but input
- and output would still come from the console.
-
- If you use 4DOS, the pipe '>&>' directs only stderr to the following
- file. '>&' directs both stdout and stderr.
-
- --
- |Jeff Epler Additions Welcome c(-8 ;-) >{8-) |
- | :) (=( =-] (-= Celebrating the variety of faces =-> :^) {-= |-) (: |
- | Lincoln, Nebraska|
-