From owner-freebsd-questions Sat Mar 15 19:00:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA02703 for questions-outgoing; Sat, 15 Mar 1997 19:00:19 -0800 (PST) Received: from nexgen.hiwaay.net (max4-149.HiWAAY.net [208.147.146.149]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA02650 for ; Sat, 15 Mar 1997 18:59:54 -0800 (PST) Received: from nexgen (localhost [127.0.0.1]) by nexgen.hiwaay.net (8.8.5/8.8.4) with ESMTP id UAA16615; Sat, 15 Mar 1997 20:56:08 -0600 (CST) Message-Id: <199703160256.UAA16615@nexgen.hiwaay.net> X-Mailer: exmh version 1.6.9 8/22/96 To: Jen and Luke cc: freebsd-questions@FreeBSD.ORG From: dkelly@hiwaay.net Subject: Re: awk In-reply-to: Message from Jen and Luke of "Sat, 15 Mar 1997 17:33:31 EST." <332B23BB.41C67EA6@servtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 15 Mar 1997 20:56:08 -0600 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jen and Luke write: > > 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? Whats wrong with "/usr/bin/killall"? Its in perl. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.