Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!dciem!nrcaer!cognos!jimp From: jimp@cognos.uucp (Jim Patterson) Newsgroups: comp.os.vms Subject: Re: redirection of stdio, et al. Message-ID: <642@cognos.UUCP> Date: Fri, 1-May-87 18:10:19 EDT Article-I.D.: cognos.642 Posted: Fri May 1 18:10:19 1987 Date-Received: Sat, 2-May-87 14:23:48 EDT References: <8704272220.AA01440@ucbvax.Berkeley.EDU> Reply-To: jimp@cognos.UUCP (Jim Patterson) Distribution: world Organization: Cognos Incorporated, Ottawa, Canada Lines: 31 In article <8704272220.AA01440@ucbvax.Berkeley.EDU> gwalker@SPCA.BBN.COM.UUCP writes: >The following are the ways I know of to get stdio >redirection on VMS. >1. For all programs that use SYS$OUTPUT (stdout for VMS) for their output (as > most do) you can either > a) use > ASSIGN/USER somefile SYS$OUTPUT >On the input side (SYS$INPUT), method (a) can be used: > ASSIGN/USER myinfile SYS$INPUT For VAX 11 C users, ASSIGN/USER doesn't work. You can use ASSIGN (which assigns a supervisor-level logical), but of course you have to remember to DEASSIGN it after. As near as I can figure out, this is because the VAX 11 C I/O interface doesn't actually open the standard input/output files but instead relies on the process-permanent file opens. You can also do your own I/O redirection as noted in some of the other articles. No, VAX 11 C won't do this for you (or at least it won't for me). There is a product called VAX Shell that I think does all of this redirection etc. for you. I haven't used it, though, so have no idea how it works or what it does for you. From what I know of it, VAX Shell gives you a UNIX-like shell environment to replace the VMS DCL environment. -- Jim Patterson Cognos Inc.