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

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