From owner-freebsd-chat Tue Apr 20 6:26:49 1999 Delivered-To: freebsd-chat@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 6EED515758 for ; Tue, 20 Apr 1999 06:26:46 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id PAA82694; Tue, 20 Apr 1999 15:24:16 +0200 (CEST) (envelope-from des) To: Darren Pilgrim Cc: Marius Bendiksen , Sue Blake , Amancio Hasty , Bill Swingle , FreeBSD Chat Subject: Re: Cross Posting... References: <371C7AE3.36FA3E12@uswest.net> From: Dag-Erling Smorgrav Date: 20 Apr 1999 15:24:15 +0200 In-Reply-To: Darren Pilgrim's message of "Tue, 20 Apr 1999 06:02:27 -0700" Message-ID: Lines: 17 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Darren Pilgrim 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