home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!decwrl!waikato.ac.nz!comp.vuw.ac.nz!actrix!templar!jbickers
- From: jbickers@templar.actrix.gen.nz (John Bickers)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Console file handlers from within a Shell started program
- Message-ID: <jbickers.0diz@templar.actrix.gen.nz>
- Date: 20 Aug 92 16:15:27 GMT
- Article-I.D.: templar.jbickers.0diz
- References: <1992Aug11.080104.3354@syma.sussex.ac.uk>
- <1b7ea705.ARN22d0@prolix.pub.uu.oz.au><14545@borg.cs.unc.edu> <1b854d0d.ARN237c@prolix.pub.uu.oz.au>
- Organization: TAP, NZAmigaUG
- Lines: 17
-
- Quoted from <1b854d0d.ARN237c@prolix.pub.uu.oz.au> by dac@prolix.pub.uu.oz.au (Andrew Clayton):
-
- > fprintf(stderr,WELCOME"\n%s",ctime(×tart));
-
- ...
-
- > Where is the problem?
-
- You can't redirect stderr. The C startup code does an
- Open("*",...) to create that stderr file handle, whereas stdin and
- stdout are just picked up from Input() and Output(), which CAN be
- redirected.
-
- > Dac
- --
- *** John Bickers, TAP, NZAmigaUG. jbickers@templar.actrix.gen.nz ***
- *** "Radioactivity - It's in the air, for you and me" - Kraftwerk ***
-