From owner-freebsd-questions Sun Mar 16 02:22:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA19035 for questions-outgoing; Sun, 16 Mar 1997 02:22:14 -0800 (PST) Received: from obiwan.aceonline.com.au (obiwan.aceonline.com.au [203.103.90.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA19030 for ; Sun, 16 Mar 1997 02:22:09 -0800 (PST) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id SAA02039; Sun, 16 Mar 1997 18:21:09 +0800 (WST) Date: Sun, 16 Mar 1997 18:21:08 +0800 (WST) From: Adrian Chadd To: Jen and Luke cc: freebsd-questions@freebsd.org Subject: Re: awk In-Reply-To: <332B23BB.41C67EA6@servtech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk If you are running FreeBSD 2.2 .. try the "killall" command. If not, grab it from someone running it, or ask and I'll mail it to you (its a perl script). Cya. Adrian. On Sat, 15 Mar 1997, Jen and Luke wrote: > Hi, > We are trying to make a command to kill something based on its name, > someone posted the instructions awhile back, but this is as far as we > got... > ps -ax | grep "string" | grep -v grep > > We know we need to pipe to awk to print the pid, but aren't sure of how > to do it... Oh, and the man page sucks...:) How do we nominate it for > the worst man page award? > -- > Jen, Luke, Rusty , Ruckus , Telly , and 4 cats >