home *** CD-ROM | disk | FTP | other *** search
- 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
- From: dac@prolix.pub.uu.oz.au (Andrew Clayton)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Console file handlers from within a Shell started program
- Message-ID: <1b854d0d.ARN237c@prolix.pub.uu.oz.au>
- Date: Tue, 18 Aug 92 13:47:25 GMT
- Reply-To: munnari!labtam!eyrie!prolix!dac
- FollowUp-To: comp.sys.amiga.programmer
- References: <1992Aug11.080104.3354@syma.sussex.ac.uk> <1b7ea705.ARN22d0@prolix.pub.uu.oz.au>
- <14545@borg.cs.unc.edu>
- Keywords:
- Organization: More like Dis~, really.
- Lines: 45
-
- In article <14545@borg.cs.unc.edu>, Stephen Tell writes:
-
- > In article <1b7ea705.ARN22d0@prolix.pub.uu.oz.au> munnari!labtam!eyrie!prolix!dac writes:
- > >In article <1992Aug11.080104.3354@syma.sussex.ac.uk>, James E. Talbut writes:
- > >
- > >> I want access to the file handle that the Shell would give if the
- > >> programs io was not redirected, in addition to that for the redirected io.
- > >
- > >Can't you just write to STDOUT and STDERR if redirection is being
- > >used? STDERR won't [normally] be redirected.
- >
- > 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.
-
- > I would love to hear that this has changed and that there is now a
- > standard error file handle accessible thorough Stderr() or some such.
-
- Works great.
-
- Where is the problem?
-
- [Using SAS/C 5.10a and WB 2.04]
-
- > Steve Tell tell@cs.unc.edu H: 919 968 1792 | #5L Estes Park apts
-
- Dac
- --
- munnari!labtam!eyrie!prolix!dac David Andrew Clayton. // _| _ _
- prolix!dac%eyrie@labtam.oz.au Canberra, Australia \X/ (_](_](_
- dac@prolix.pub.uu.oz.au I post .
- prolix!dac@sserve.cc.adfa.oz.au . . I am. +61 6 290 2215
-