Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: Re: CAPTURING OUTPUT OF SEND/COMMAND SHOW USERS TO FILE Message-ID: <880210103736.513@CitHex.Caltech.Edu> Date: 10 Feb 88 18:45:09 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 > DOES ANYONE KNOW HOW I CAN CAPTURE THE REPLY FROM A > "SEND/COMMAND SHOW USERS" INTO A FILE, INCLUDING ERROR MESSAGES > SUCH AS "NO SUCH NODE DEFINED". > I'VE TRIED CAPTURING THIS INTO A FILE WITHOUT SUCCESS--THE OUTPUT IS > FORCED INTO MY TERMINAL. There are a number of ways to do this. 1) You could write a program that associates a mailbox with your terminal and traps incoming broadcast messages to a file. I don't know the details of how to do this, but I know it can be done because there is a utility (TPU) that comes with VMS that will do it. 2) You can use the command EDIT/TPU (if you've got an ANSI terminal), then execute the EVE command "DCL SEND/COMMAND SHOW USERS". The results will be put in the buffer MESSAGES. 3) You can use the DCL command "SET HOST 0/LOG", log in again, issue the SEND command, wait until it finishes, and then log out. The results will be in the log file (SETHOST.LOG, by default).