Path: utzoo!mnetor!uunet!husc6!purdue!umd5!umbc3!thierbac From: thierbac@umbc3.UMD.EDU (Ed Thierbach ) Newsgroups: comp.os.vms Subject: Re: CAPTURING OUTPUT OF SEND/COMMAND SHOW USERS TO FILE Message-ID: <785@umbc3.UMD.EDU> Date: 10 Feb 88 17:28:09 GMT References: Reply-To: thierbac@umbc3.UMD.EDU (Ed Thierbach) Organization: University of Maryland, Baltimore County Lines: 31 In article SUE@MAX.ACS.WASHINGTON.EDU writes: > > 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. Since the messages you receive back are broadcast messages, I see two alternatives: 1: The easiest way is to sign on again by using the command $SET HOST 0/LOG. All of the terminal output of this session will be saved in a file called SETHOST.LOG, and you can weed through it to find the messages. Of course, this is no good if you want to use the messages right away, like in a command procedure. Also, you need NETMBX privilege to use SET HOST. 2: You can write a program that issues the command and traps all incoming broadcast messages. One of my old student assistants (I left, he didn't) was working on a program that did this, but I don't have the code any more. This is quite a bit harder than 1), and would take a fairly decent knowledge of system services. Maybe some other netlander has better solutions, but these are the only ones that come to mind. -------- Ed Thierbach VAX System Manager Roy F. Weston, Inc. (I gotta get a better signature.......)