home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!concert!borg!rukbat!tell
- From: tell@rukbat.cs.unc.edu (Stephen Tell)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Console file handlers from within a Shell started program
- Message-ID: <14545@borg.cs.unc.edu>
- Date: 18 Aug 92 03:52:40 GMT
- References: <1992Aug11.080104.3354@syma.sussex.ac.uk> <1b7ea705.ARN22d0@prolix.pub.uu.oz.au>
- Sender: news@cs.unc.edu
- Organization: The University of North Carolina at Chapel Hill
- Lines: 34
-
- In article <1b7ea705.ARN22d0@prolix.pub.uu.oz.au> munnari!labtam!eyrie!prolix!dac writes:
- >In article <1992Aug11.080104.3354@syma.sussex.ac.uk>, James E. Talbut writes:
- >
- >> I have a nice little CLI program for which I want to be able to use the
- >> console io even if the program has got it's io redirected.
- >> Does that make sense?
- >> I want access to the file handle that the Shell would give if the
- >> programs io was not redirected, in addition to that for the redirected io.
- >
- >Can't you just write to STDOUT and STDERR if redirection is being
- >used? STDERR won't [normally] be redirected.
-
- > dac@prolix.pub.uu.oz.au
-
- Last time I checked (1.3) AmigaDOS didn't have standard error. The C runtime
- environments for Manx, Lattice/Sas, et. al. opened the console to simulate
- it.
-
- Under Unix (from where all of this standard I/O stuff came, although it
- didn't originate there) you've got stdout and stderr, both of which can
- be redirected by the shell (foo >bar 2>baz) . Your program can still open
- up /dev/tty to get to the controlling terminal. I'd love to be able to have
- the same flexibility on the Amiga.
-
- I would love to hear that this has changed and that there is now a
- standard error file handle accessible thorough Stderr() or some such.
-
-
- Steve
- --
- Steve Tell tell@cs.unc.edu H: 919 968 1792 | #5L Estes Park apts
- UNC Chapel Hill Computer Science W: 919 962 1845 | Carrboro NC 27510
- Exercise 15.9 [Very Hard] Devise a more orderly way to measure time. Get
- somebody with some authority to agree to adopt it. - P.J. Plauger
-