Style question - how to kill process based on user name / tty?
gwyn at BRL-VLD.ARPA
gwyn at BRL-VLD.ARPA
Thu Aug 16 08:54:07 AEST 1984
From: Doug Gwyn (VLD/VMB) <gwyn at BRL-VLD.ARPA>
The cleanest way is STILL to run "ps" (with appropriate options) and
scan for the combination that you are interested in (e.g. matching
UID & CTTY). That way, when the kernel data structures change (ours
do every once in a while) your "killer program" will still work.
More information about the Comp.unix.wizards
mailing list