home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12472 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.1 KB

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