Article View: comp.sys.ibm.pc.programmer
Article #10Re: Redirecting STDERR
From: Brian Cooper
Date: Thu, 05 Nov 1992 00:45
Date: Thu, 05 Nov 1992 00:45
19 lines
1255 bytes
1255 bytes
In article <1d9g03INNq53@golem.wcc.govt.nz> dennis_c@kosmos.wcc.govt.nz writes: >I know this must have been asked 1000 times before, but I haven't been >able to find the answer. I would appreciate it if someone can just >point me to the relevant information. > >How can I redirect (or just suppress) output from a program that is >going to stderr rather than stdout? > >Ideally, I need a command that I could use from a batch file before >and after running the program that would send all stderr output to >somewhere other than the screen. > How about putting 'ctty nul:' in front of the program invocation and 'ctty con:' afterwards? That ought to shut it up! -- Brian Cooper bcc@Eyring.COM Eyring Corp. +1 801-375-2434 or 1 800 YES PDOS
Technical Details
Message-ID:
<1992Nov5.004511.16249@fcom.cc.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!lanai!bccReferences:
<1d9g03INNq53@golem.wcc.govt.nz>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.programmer,comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!lanai!bcc From: bcc@lanai.Eyring.COM (Brian Cooper) Subject: Re: Redirecting STDERR Message-ID: <1992Nov5.004511.16249@fcom.cc.utah.edu> Sender: news@fcom.cc.utah.edu Organization: University of Utah Computer Center References: <1d9g03INNq53@golem.wcc.govt.nz> Date: Thu, 5 Nov 92 00:45:11 GMT Lines: 19