home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!decwrl!concert!borg!rukbat!tell
- From: tell@rukbat.cs.unc.edu (Stephen Tell)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Console file handlers from within a Shell started program
- Message-ID: <14605@borg.cs.unc.edu>
- Date: 20 Aug 92 03:15:43 GMT
- References: <1b7ea705.ARN22d0@prolix.pub.uu.oz.au> <14545@borg.cs.unc.edu> <1b854d0d.ARN237c@prolix.pub.uu.oz.au>
- Sender: news@cs.unc.edu
- Organization: The University of North Carolina at Chapel Hill
- Lines: 29
-
- In article <1b854d0d.ARN237c@prolix.pub.uu.oz.au> munnari!labtam!eyrie!prolix!dac writes:
- >In article <14545@borg.cs.unc.edu>, I wrote:
-
- >> Last time I checked (1.3) AmigaDOS didn't have standard error. The C runtime
- >> environments for Manx, Lattice/Sas, et. al. opened the console to simulate
- >> it.
-
- >It works for me
- > fprintf(stderr,WELCOME"\n%s",ctime(×tart));
- >writes to stderr, and
- > printf("Particulars is %s\n",particulars);
- >writes to stdout.
-
- >If I redirect stdout via '>', then I get the stderr output on the
- >console, and not in the redirected output.
-
- >Where is the problem?
- > David Andrew Clayton. dac@prolix.pub.uu.oz.au
-
- Now, show me how to put stderr in a file and let stdout go to the console...
- and how to put stderr in one file and stdout in another. Can't be done, to
- my knowledge.
-
- Steve
- --
- Steve Tell tell@cs.unc.edu H: 919 968 1792 | #5L Estes Park apts
- UNC Chapel Hill Computer Science W: 919 962 1845 | Carrboro NC 27510
- Exercise 15.9 [Very Hard] Devise a more orderly way to measure time. Get
- somebody with some authority to agree to adopt it. - P.J. Plauger
-