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

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!decwrl!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: <14605@borg.cs.unc.edu>
  6. Date: 20 Aug 92 03:15:43 GMT
  7. References: <1b7ea705.ARN22d0@prolix.pub.uu.oz.au> <14545@borg.cs.unc.edu> <1b854d0d.ARN237c@prolix.pub.uu.oz.au>
  8. Sender: news@cs.unc.edu
  9. Organization: The University of North Carolina at Chapel Hill
  10. Lines: 29
  11.  
  12. In article <1b854d0d.ARN237c@prolix.pub.uu.oz.au> munnari!labtam!eyrie!prolix!dac writes:
  13. >In article <14545@borg.cs.unc.edu>, I wrote:
  14.  
  15. >> Last time I checked (1.3) AmigaDOS didn't have standard error.  The C runtime
  16. >> environments for Manx, Lattice/Sas, et. al. opened the console to simulate
  17. >> it.
  18.  
  19. >It works for me
  20. >   fprintf(stderr,WELCOME"\n%s",ctime(×tart));
  21. >writes to stderr, and 
  22. >   printf("Particulars is %s\n",particulars);
  23. >writes to stdout.
  24.  
  25. >If I redirect stdout via '>', then I get the stderr output on the
  26. >console, and not in the redirected output.
  27.  
  28. >Where is the problem?
  29. > David Andrew Clayton.        dac@prolix.pub.uu.oz.au 
  30.  
  31. Now, show me how to put stderr in a file and let stdout go to the console...
  32. and how to put stderr in one file and stdout in another.  Can't be done, to
  33. my knowledge.
  34.  
  35. Steve
  36. -- 
  37. Steve Tell       tell@cs.unc.edu H: 919 968 1792  | #5L Estes Park apts
  38. UNC Chapel Hill Computer Science W: 919 962 1845  | Carrboro NC 27510
  39. Exercise 15.9 [Very Hard] Devise a more orderly way to measure time.  Get
  40. somebody with some authority to agree to adopt it. - P.J. Plauger
  41.