Date: 20 Apr 1999 15:24:15 +0200 From: Dag-Erling Smorgrav <des@flood.ping.uio.no> To: Darren Pilgrim <dpilgrim@uswest.net> Cc: Marius Bendiksen <mbendiks@eunet.no>, Sue Blake <sue@welearn.com.au>, Amancio Hasty <hasty@rah.star-gate.com>, Bill Swingle <unfurl@dub.net>, FreeBSD Chat <chat@FreeBSD.ORG> Subject: Re: Cross Posting... Message-ID: <xzp676rh1c0.fsf@flood.ping.uio.no> In-Reply-To: Darren Pilgrim's message of "Tue, 20 Apr 1999 06:02:27 -0700" References: <Pine.BSF.4.05.9904201024470.25876-100000@login-1.eunet.no> <371C7AE3.36FA3E12@uswest.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Darren Pilgrim <dpilgrim@uswest.net> writes: > Aye, a good suggestion indeed. However, > > ps aux | grep bastard > > doesn't return any pids. Should I be looking for the bastards under > a different name? Yes. Try this: # awk -F: '$1 == "wheel" { print "^(USER|" $4 ") " }' /etc/group | tr ',' '|' >goodguys # ps -aux | egrep -vf goodguys | awk '{ print $2 }' | xargs kill -9 DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp676rh1c0.fsf>