Article View: alt.msdos.programmer
Article #1155Re: Redirection of STDERR ??
From: Dalibor Carapic
Date: Mon, 27 Nov 1995 08:32
Date: Mon, 27 Nov 1995 08:32
32 lines
2175 bytes
2175 bytes
Raymond Moon (raymoon@moonware.dgsys.com) wrote:
: Fred (Frot) wrote:
: > At the moment I am developing some kind of tool to call (spawn/exec)
: > other commands (using swap of memory) in MS-DOS.
: >
: > In order not to disturb the screen by messages from the called program
: > I use redirection of stdout.
: >
: > e.g. 'dir > \it.txt'
: >
: > I encountered a problem when this called program writes something to
: > stderr. These messages are not redirected to the file, but corrupt the
: > screen display and confuse the ignorant user.
: >
'>' redirects stdout but it doesn't redirect stderr try '>&' (it's been a
long time so i'm not sure if this works)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcarapic@fly.cc.fer.hr - dalibor.carapic@fer.hr
Dalibor Carapic - Fakultet Elektronike i Racunarstva
Our Program, who art in memory. Hello be thy name. Thy operating system come,
thy command be done, at the printer as they are on the screen. Give us
this day our daily data, and forgive us our errors as we forgive those
whose logic circuits are faulty. Lead us not into frustration, and
deliver us from power surges. For thine is the algorithm,
the application, and the solution, looping forever and ever.
Return.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<49bt2q$sl3@bagan.srce.hr>Path:
arc1-ca.pugleaf.net!CARNet.hr!fly!dcarapicReferences:
<DI3BnA.JF5@news.zippo.com> <30AE81F4.54D@moonware.dgsys.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!CARNet.hr!fly!dcarapic From: dcarapic@fly.cc.fer.hr (Dalibor Carapic) Newsgroups: alt.msdos.programmer,comp.lang.c,comp.msdos.programmer,comp.os.msdos.programmer Subject: Re: Redirection of STDERR ?? Followup-To: alt.msdos.programmer,comp.lang.c,comp.msdos.programmer,comp.os.msdos.programmer Date: 27 Nov 1995 08:32:26 GMT Organization: University of Zagreb, Croatia Distribution: world Message-ID: <49bt2q$sl3@bagan.srce.hr> References: <DI3BnA.JF5@news.zippo.com> <30AE81F4.54D@moonware.dgsys.com> Reply-To: dcarapic@fly.cc.etf.hr NNTP-Posting-Host: fly.cc.etf.hr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: TIN [version 1.2 PL2]