Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!YALE.ARPA!LEICHTER-JERRY From: LEICHTER-JERRY@YALE.ARPA.UUCP Newsgroups: mod.computers.vax Subject: Re: VMS equiv of UNIX 'cat foo > /dev/ttyX' Message-ID: <8702260211.AA14202@ucbvax.Berkeley.EDU> Date: Wed, 25-Feb-87 21:11:37 EST Article-I.D.: ucbvax.8702260211.AA14202 Posted: Wed Feb 25 21:11:37 1987 Date-Received: Fri, 27-Feb-87 23:53:06 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Distribution: world Organization: The ARPA Internet Lines: 45 Approved: info-vax@sri-kl.arpa I was wondering if there is an equivalent of unix command that pipes the output to another terminal ? $ cat foo.mss > /dev/tty3 ? under VMS ? If there is no existing utility then, I'll have to write a procedure for that. Users in VMS login to two terminals, but want to send the output of a program in one to another terminal . The literal equivalent of the command you gave above is: $ COPY FOO.MMS TTY3: In general, it will not work, however: You will be told that TTY3: is "unavailable", because someone else is already using it. Unlike Unix, VMS is rather protective about device access, and will not allow you to dump stuff to devices in use by other jobs, even if those jobs are yours. The SHARE privilege would allow you to write to other terminals - ALL other terminals. There is a system call, $BRKTHRU, which is used to do broadcasting to other terminals. It also requires privileges to write to terminals other than those actually in use by your job - OPER, in this case. It's possible to have multiple terminals owned by one job. For example, you could log in on TTA1:, then allocate TTA3: and do a: $ SPAWN/NOWAIT/INPUT=TTA3:/OUTPUT=TTA3: and have a new subprocess running on TTA3:. Since TTA3: would be owned by the same job as TTA1:, either process could write to either terminal. This last approach, however, also won't work on most systems, since terminals are normally set to forbid any access by non-privileged users when no one is logged in on them. (This is to prevent people from writing password grabbers that fake a login sequence.) You could have your system manager set an ACL on a particular terminal port to allow you to allocate it. -- Jerry -------