kneller@socrates.ucsf.edu (Don Kneller%Langridge) (05/21/87)
>>>[...] nothing from the DOS command line can help re-direct standard error. >> >>is: RSE <program name and parameters>. This will redirect standard >>error to standard out for the execution of <program name and parameters>. >>(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 <stdio.h> 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