Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!esosun!ucsdhub!sdcsvax!ucbvax!GRINNELL.MAILNET!McGuire_Ed From: McGuire_Ed@GRINNELL.MAILNET Newsgroups: comp.os.vms Subject: (none) Message-ID: <8704280659.AA13103@ucbvax.Berkeley.EDU> Date: Mon, 27-Apr-87 13:39:00 EDT Article-I.D.: ucbvax.8704280659.AA13103 Posted: Mon Apr 27 13:39:00 1987 Date-Received: Wed, 29-Apr-87 05:42:38 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 26 > Date: 25 Apr 87 20:28:28 GMT > From: unc!mcguffey@mcnc.org (Michael McGuffey) > Subject: redirection of stdio, et al. > > Does anyone know of any tools that allow command line redirection of > stdio under VMS. Something similar to the way unix and msdos does it is > preferable to some of the methods that have previously been proposed. > > -mike mcguffey One way to redirect I/O one a one-shot basis is with these statements: $ DEF/USER SYS$INPUT filespec $ DEF/USER SYS$OUTPUT filespec $ DEF/USER SYS$ERROR filespec They redirect stdin, stdout, or stderr. The redirection is cancelled after the next image rundown, so you put them right before the DCL command used to invoke the program whose I/O you are redirecting. If you want more, piping for example, you may be interested in the Software Tools package for VMS, which includes a shell supporting UNIX-style I/O redirection. I hope someone else on this list can give you more information about Software Tools. We have an old release, but I don't know where to get it. Still, I use it fairly frequently. Ed