STODGHIP@DICKINSN.BITNET ("Jam Fan ", Stodghill, Paul) (08/20/87)
Thanks to everyone that responded to my inquire about redirecting IO on a LIB$SPAWN call. In the meantime I figured a way to do it without having to LIB$SPAWN any special .COM files. If anyone is interested in some code fragments, I'd be glad to post them, or just to send them to you directly. Now that this is figured out, I'm testing a program (called SH) which allows UNIX-like redirection for DCL. <'s, >'s, piping, and detached execution are allow supported (&'s). The following command $ SH DIRECTORY | SORT SYS$INPUT SYS$OUTPUT >OUT.OUT & will sort a directory listing and put the output in a file called OUT.OUT. Also, the command is done in the background so the user doesn't have to wait. I'm cleaning up the code and will be willing to post it in a week or two. -- Paul Stodghill Bitnet: STODGHIP@DICKINSN.Bitnet USMail: Computer Center Dickinson College Carlisle, PA 17013