Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!ucsfcgl!socrates.ucsf.edu!kneller From: kneller@socrates.ucsf.edu (Don Kneller%Langridge) Newsgroups: comp.sys.ibm.pc Subject: Re: RSE Message-ID: <10212@cgl.ucsf.EDU> Date: Wed, 20-May-87 18:46:39 EDT Article-I.D.: cgl.10212 Posted: Wed May 20 18:46:39 1987 Date-Received: Sat, 23-May-87 08:49:19 EDT Sender: daemon@cgl.ucsf.edu Reply-To: kneller@socrates.ucsf.edu.UUCP (Don Kneller) Distribution: world Organization: UCSF Computer Graphics Lab Lines: 30 >>>[...] nothing from the DOS command line can help re-direct standard error. >> >>is: RSE . This will redirect standard >>error to standard out for the execution of . >>(RSE stands for Redirect Standard Error). >it up. Someone want to do a quick-and-dirty RSE for the PD? Since it is so short, here is MSC 4.0 source for RSE. It really should include some errorchecking, but ... /* RSE.C * - redirect standard error to standard out and execute the command * passed on the command line. * * eg. rse cl -c foo.c > errs */ # include main(ac, av) int ac; char *av[]; { dup2(fileno(stdout), fileno(stderr)); /* ie dup2(1, 2) */ execvp(av[1], &av[2]); } ----- Don Kneller UUCP: ...ucbvax!ucsfcgl!kneller ARPA: kneller@cgl.ucsf.edu BITNET: kneller@ucsfcgl.BITNET