Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!ucbvax!agate!aurora!amelia!ames!ll-xn!husc6!hao!noao!arizona!naucse!jdc From: jdc@naucse.UUCP (John Campbell) Newsgroups: comp.os.vms Subject: Re: CAPTURING OUTPUT OF SEND/COMMAND SHOW USERS TO FILE Summary: Another way (SMG$...) Message-ID: <569@naucse.UUCP> Date: 10 Feb 88 23:23:18 GMT References: <785@umbc3.UMD.EDU> Organization: Northern Arizona University, Flagstaff, AZ Lines: 27 In article <785@umbc3.UMD.EDU>, thierbac@umbc3.UMD.EDU (Ed Thierbach ) writes: > 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... > Ed gives some very good advice... > 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. ... > > 2: You can write a program that issues the command and traps all incoming > Writing such a program does not have to be hard. I capture broadcast messages in my editor using smg$set_boradcast_trapping. As long as the program is resident, an AST goes off whenever a broadcast message occurs. The only part you would need to code is something to issue the DCL command while the AST remained in effect... -- John Campbell ...!arizona!naucse!jdc unix? Sure send me a dozen, all different colors.