From:	CRDGW2::CRDGW2::MRGATE::"SMTP::MIS.MCW.EDU::FPS!BRODIE"  5-DEC-1989 19:30
To:	MRGATE::"ARISIA::EVERHART"
Subj:	modified "uustat" command file

Message-Id: <8912052351.AA07926@uwm.edu>
Received: from uwm.edu by DRYCAS.CLUB.CC.CMU.EDU; Tue, 5 Dec 89 18:53 EST
Received: by uwm.edu; id AA07926; Tue, 5 Dec 89 17:51:10 -0600
Received: from mis by fps.mcw.edu (DECUS UUCP w/Smail); Tue,  5 Dec 89 16:47:46
 CDT
Received: by mis.mcw.edu (DECUS UUCP w/Smail); Tue,  5 Dec 89 16:14:57 CDT
Date: Tue,  5 Dec 89 16:14:57 CDT
From: "Kent C. Brodie" <brodie@mis.mcw.edu>
Subject: modified "uustat" command file
To: vmsnet@DRYCAS.CLUB.CC.CMU.EDU
X-Vms-Mail-To: VMSNET
X-Envelope-To: everhart%arisia.decnet@CRDGW1.GE.COM

I've found that "uustat" is real handy, but if you're like me,
and have several connections, uustat is a pain, 'cause the
display quickly scrolls off the screen, due to all of the STST.* files
being displayed.

I submit for your approval (turn rod serling voice on) a slightly
modified "uustat" command file, that by DEFAULT, does what it
always has--   parts of the SHOW SYSTEM display, plus all the STST
info/etc.   The OPTIONAL parameter "-s" (for SHORT) tells uustat
to only display the system process info, and ignore the rest.
(useful in many cases).

the "-" syntax is unix-like, but then isn't uucp?   :-)

The parameter is checked for valifity, in case this would ever be
expanded upon......



 $! UUSTAT.COM   J. Hanrahan. (?)   Modified by K. Brodie
 $ param = f$edit(f$extract(0,2,p1),"UPCASE")
 $ if (param .nes. "-S") .and. (param .nes. "") then $goto usage
 $ define/user sys$output temp.txt
 $ show system
 $ search temp.txt "uucp","uxqt"
 $ delete/nolog temp.txt;
 $ lf[0,7]=10
 $ write sys$output lf+f$logical("UUCP_STATUS_uucp")
 $ if param .eqs. "-S" then $exit    ! exit if brief format desired.
 $     type uucp_log:stst.* 
 $     dire uucp_spool:%.*,tm*.*
 $ exit
 $ usage:   write sys$output "Usage:   uustat [-s]"

--
Kent C. Brodie				brodie@mis.mcw.edu
Systems Manager				+1 414 257-8769
Medical College of Wisconsin
