Tom Ng <ADVI8733@Ryerson.Ca> (06/19/91)
Is it possible to redirect stderr under msdos? It would be nice if I could choose the stream to redirect like in Unix. (eg. 2>) Some sort of TSR kludge would fine. Does dos 5.0 allow this sort of flexibility? ------------- G'd day, ay! Bitnet:advi8733@Ryerson.Ca Usenet:...!tmsoft!ryescs!tng -Tom Ng "Insanity is merely a higher state of awareness."
a_rubin@dsg4.dse.beckman.com (Arthur Rubin) (06/20/91)
In <91170.021840ADVI8733@Ryerson.Ca> ADVI8733@Ryerson.Ca (Tom Ng) writes: > Is it possible to redirect stderr under msdos? It would be nice if >I could choose the stream to redirect like in Unix. (eg. 2>) Some >sort of TSR kludge would fine. > Does dos 5.0 allow this sort of flexibility? MicroSoft C provides a utility called ERROUT, called as: ERROUT /f standarderrorfile doscommandline I think it just redirects its stderr to file, and calls the doscommand. I assume there are utilities in the usual places, but I haven't needed them. -- 2165888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal) a_rubin@dsg4.dse.beckman.com (work) My opinions are my own, and do not represent those of my employer.
craick@titan.trl.OZ.AU (John Craick) (06/21/91)
4DOS, the much favoured shareware alternative to command.com, offers stderr redirection amongst its many features. Not much good if you're writing progs for other people but handy if it's only your own system you have to cater for. John Craick Telecom Australia Research Melbourne, Oz
valley@gsbsun.uchicago.edu (Doug Dougherty) (06/21/91)
nyet@nntp-server.caltech.edu (n liu) writes: >This is probably in the FAQ, but a >& or |& will redirect both stdout >and stderr (not stderr alone..). This goes back at least to dos 3.3, >i think. No way, Jose. I am running DOS 3.3 now (strange to hear 3.3 regarded as "back to". I think of 3.3 as the advanced version of DOS - 4.x being nothing but a collection of bugs, and 5.x have just arrived on the scene) Anyway, neither of the above thingies do anything interesting. Maybe you forgot to mention, "... when running XYZ company's C-shell emulator product for DOS ..." ;-) -- (Another fine mess brought to you by valley@gsbsun.uchicago.edu)
a_rubin@dsg4.dse.beckman.com (Arthur Rubin) (06/21/91)
In <1991Jun20.205922.12369@nntp-server.caltech.edu> nyet@nntp-server.caltech.edu (n liu) writes: >This is probably in the FAQ, but a >& or |& will redirect both stdout >and stderr (not stderr alone..). This goes back at least to dos 3.3, >i think. Not on my machine, it doesn't (MS-DOS 3.30). Maybe DOS 4 or 4DOS. -- 2165888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal) a_rubin@dsg4.dse.beckman.com (work) My opinions are my own, and do not represent those of my employer.
nyet@nntp-server.caltech.edu (n liu) (06/23/91)
a_rubin@dsg4.dse.beckman.com (Arthur Rubin) writes: >In <1991Jun20.205922.12369@nntp-server.caltech.edu> nyet@nntp-server.caltech.edu (n liu) writes: >>This is probably in the FAQ, but a >& or |& will redirect both stdout >>and stderr (not stderr alone..). This goes back at least to dos 3.3, >>i think. >Not on my machine, it doesn't (MS-DOS 3.30). Maybe DOS 4 or 4DOS. So sorry. Quite right - 4dos again. No wonder it went "back at least to dos 3.3"! I think i'll expire that one..