Article View: comp.windows.x
Article #25137Re: Shell script for killing uwm
From: wohler
Date: Mon, 16 Feb 1987 18:53
Date: Mon, 16 Feb 1987 18:53
18 lines
1072 bytes
1072 bytes
here's a couple of recommendations:
>set uwmproc = `ps -acx | awk -f $FINDPROC`
save yourself a file and use:
set uwmproc = `ps -g | awk '$5 == "uwm" {print $1}'`
also note that i used ps -g; you're not interested in someone else's
uwm.
don't use kill -9 unless it's necessary (like a login shell). give
the program and operating system a chance to clean up. for
instance, gnuemacs will autosave any unwritten buffers if sent a
SIGTERM signal (kill's default).
--bw
Technical Details
Message-ID:
<8702161736.AA06321@sri-c3-5>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!mit-eddie!genrad!decvax!ucbvax!SPAM.ISTC.SRI.COM!wohlerShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!mit-eddie!genrad!decvax!ucbvax!SPAM.ISTC.SRI.COM!wohler From: wohler@SPAM.ISTC.SRI.COM.UUCP Newsgroups: comp.windows.x Subject: Re: Shell script for killing uwm Message-ID: <8702161736.AA06321@sri-c3-5> Date: Mon, 16-Feb-87 13:53:18 EST Article-I.D.: sri-c3-5.8702161736.AA06321 Posted: Mon Feb 16 13:53:18 1987 Date-Received: Tue, 17-Feb-87 06:10:27 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: SRI International, Menlo Park, CA Lines: 18