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

  1. Path: sparky!uunet!icd.ab.com!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!mips!munnari.oz.au!manuel!sserve!prolix!dac
  2. From: dac@prolix.pub.uu.oz.au (Andrew Clayton)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Console file handlers from within a Shell started program
  5. Message-ID: <1b854d0d.ARN237c@prolix.pub.uu.oz.au>
  6. Date: Tue, 18 Aug 92 13:47:25 GMT
  7. Reply-To: munnari!labtam!eyrie!prolix!dac
  8. FollowUp-To: comp.sys.amiga.programmer
  9. References: <1992Aug11.080104.3354@syma.sussex.ac.uk> <1b7ea705.ARN22d0@prolix.pub.uu.oz.au>
  10.  <14545@borg.cs.unc.edu>
  11. Keywords: 
  12. Organization: More like Dis~, really.
  13. Lines: 45
  14.  
  15. In article <14545@borg.cs.unc.edu>, Stephen Tell writes:
  16.  
  17. > In article <1b7ea705.ARN22d0@prolix.pub.uu.oz.au> munnari!labtam!eyrie!prolix!dac writes:
  18. > >In article <1992Aug11.080104.3354@syma.sussex.ac.uk>, James E. Talbut writes:
  19. > >
  20. > >> I want access to the file handle that the Shell would give if the
  21. > >> programs io was not redirected, in addition to that for the redirected io.
  22. > >
  23. > >Can't you just write to STDOUT and STDERR if redirection is being
  24. > >used? STDERR won't [normally] be redirected.
  25. > Last time I checked (1.3) AmigaDOS didn't have standard error.  The C runtime
  26. > environments for Manx, Lattice/Sas, et. al. opened the console to simulate
  27. > it.
  28.  
  29. It works for me
  30.  
  31.    fprintf(stderr,WELCOME"\n%s",ctime(×tart));
  32.  
  33. writes to stderr, and 
  34.  
  35.    printf("Particulars is %s\n",particulars);
  36.  
  37. writes to stdout.
  38.  
  39. If I redirect stdout via '>', then I get the stderr output on the
  40. console, and not in the redirected output.
  41.  
  42. > I would love to hear that this has changed and that there is now a
  43. > standard error file handle accessible thorough Stderr() or some such.
  44.  
  45. Works great. 
  46.  
  47. Where is the problem?
  48.  
  49. [Using SAS/C 5.10a and WB 2.04]
  50.  
  51. > Steve Tell       tell@cs.unc.edu H: 919 968 1792  | #5L Estes Park apts
  52.  
  53. Dac
  54. --
  55. munnari!labtam!eyrie!prolix!dac      David Andrew Clayton.           // _| _  _
  56.   prolix!dac%eyrie@labtam.oz.au      Canberra, Australia           \X/ (_](_](_
  57.         dac@prolix.pub.uu.oz.au      I post .
  58. prolix!dac@sserve.cc.adfa.oz.au            . . I am.             +61 6 290 2215
  59.