From owner-freebsd-arch@FreeBSD.ORG Thu Mar 25 10:05:41 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C7EA16A4CE for ; Thu, 25 Mar 2004 10:05:41 -0800 (PST) Received: from smtp1.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5C1943D1D for ; Thu, 25 Mar 2004 10:05:40 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i2PI5bHB015330; Thu, 25 Mar 2004 13:05:40 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20040325065314.GA64827@regency.nsu.ru> References: <20040325065314.GA64827@regency.nsu.ru> Date: Thu, 25 Mar 2004 13:05:36 -0500 To: Alexey Dokuchaev From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: arch@freebsd.org Subject: Re: Adding `pgrep' and `pkill' to /usr/bin X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 18:05:41 -0000 At 12:53 PM +0600 3/25/04, Alexey Dokuchaev wrote: >On Wed, Mar 24, 2004, Julian Elischer wrote: > > > > On Wed, 24 Mar 2004, Garance A Drosihn wrote: > > > > > > The `pgrep' command searches the process table on the running > > > system and prints the process IDs of all processes that match the > > > criteria given on the command line. > >I've been using alias "psg = ps auxlww | grep" for pretty much the >same purpose. Is there some very strong reasoning behind bringing >in some new facility? NetBSD has it in the base system. OpenBSD will soon have it in their base system. Solaris has it in their base system. My installs of Redhat 7.3 have it, although I'm not sure if that is in the base system or some rpm that we (@RPI) add... One nice thing about this is that the different OS's would have the EXACT SAME options for these commands, as opposed to `ps' where it's almost hopeless that we'll ever be able to sort out the different options on different OS's. > > > The `pkill' command searches the process table on the running > > > system and signals all processes that match the criteria given > > > on the command line. > > > > so pkill is like killall but more flexible? > > > > how about you make killall a special case of pkill so we don't > > have the duplication.. > >Seconded here. Frankly, I tend to go against populating base >system with utilities of not so strict orthogonality. I agree that it would be a good idea to implement killall as a special-case of pkill. It might take me awhile to do this, but I'm all for the idea. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu