Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!bu-cs!bucsb.bu.edu!madd From: madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) Newsgroups: comp.sys.ibm.pc Subject: Re: Re-directing the output of commands in a BAT file Message-ID: <971@bucsb.bu.edu.UUCP> Date: Tue, 19-May-87 12:43:37 EDT Article-I.D.: bucsb.971 Posted: Tue May 19 12:43:37 1987 Date-Received: Wed, 20-May-87 05:33:17 EDT References: <1837@im4u.UUCP> <632@zaphod.UUCP> Reply-To: madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) Distribution: world Organization: ODO (Organization for the Disorganization of Organization) Lines: 24 In article <632@zaphod.UUCP> dick@plx.UUCP (Dick Flanagan) writes: >In article <1837@im4u.UUCP> jai@im4u.UUCP (Jai Srinivasan) writes: >>[...] nothing from the DOS command line can help re-direct standard error. > >Polytron (the folks who bring you POLY-this-and-that) supply a program >with their PVCS and PolyMake products called RSE. The syntax for RSE >is: RSE . This will redirect standard >error to standard out for the execution of . >(RSE stands for Redirect Standard Error). An example they give of its >use is: RSE MAKE -I > RESULTS. This will run MAKE with errors being >ignored and all error and normal messages being redirected to the file >called RESULTS. I've tried it and the puppy works! This would be a real quick program to make; merely put the stdout file handle into the stderr file descriptor and invoke the program specified on the command line. I'd show you some code, but really I haven't used MS-DOS file handles for anything and I'd probably screw it up. Someone want to do a quick-and-dirty RSE for the PD? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Jim Frost * The Madd Hacker | UUCP: ..!harvard!bu-cs!bucsb!madd H H | ARPA: madd@bucsb.bu.edu H-C-C-OH <- heehee +---------+---------------------------------- H H | "We are strangers in a world we never made"