From owner-freebsd-questions Sun Mar 16 09:02:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA07248 for questions-outgoing; Sun, 16 Mar 1997 09:02:30 -0800 (PST) Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA07238 for ; Sun, 16 Mar 1997 09:02:23 -0800 (PST) Received: (from helbig@localhost) by helbig.informatik.ba-stuttgart.de (8.8.5/8.8.5) id SAA02254; Sun, 16 Mar 1997 18:01:02 +0100 (MET) From: Wolfgang Helbig Message-Id: <199703161701.SAA02254@helbig.informatik.ba-stuttgart.de> Subject: Re: awk In-Reply-To: from Adrian Chadd at "Mar 16, 97 06:21:08 pm" To: adrian@obiwan.aceonline.com.au (Adrian Chadd) Date: Sun, 16 Mar 1997 18:01:01 +0100 (MET) Cc: questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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. > Or you can use awk '{print $2}' Wolfgang > > 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 > > > >