From owner-freebsd-arch@FreeBSD.ORG Thu Mar 25 00:48:53 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 AA7EF16A4CE for ; Thu, 25 Mar 2004 00:48:53 -0800 (PST) Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [211.29.132.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id B885743D48 for ; Thu, 25 Mar 2004 00:48:52 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i2P8mc127705; Thu, 25 Mar 2004 19:48:38 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1])i2P8mbNa057448; Thu, 25 Mar 2004 19:48:37 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.12.10/8.12.10/Submit) id i2P8mbUq057447; Thu, 25 Mar 2004 19:48:37 +1100 (EST) (envelope-from peter) Date: Thu, 25 Mar 2004 19:48:37 +1100 From: Peter Jeremy To: Alexey Dokuchaev Message-ID: <20040325084837.GA57169@server.vk2pj.dyndns.org> References: <20040325065314.GA64827@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040325065314.GA64827@regency.nsu.ru> User-Agent: Mutt/1.4.2.1i 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 08:48:53 -0000 On Thu, Mar 25, 2004 at 12:53:14PM +0600, Alexey Dokuchaev wrote: >On Wed, Mar 24, 2004 at 03:51:22PM -0800, 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. Criteria includes matching against the >> > process-name, or matching against the full-argument list of the >> > processes. > >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? grep'ing the output from ps generally requires tricks to avoid the grep process matching. pgrep avoids this and allows better control over what is being matched. At another level, Unices tend to differ most when it comes to administration utilities. This requires sysadmins to mentally change gears as they move between xterm (should I type "ps -ef" or "ps -ax" into this terminal?). Adding (useful) sysadmin utilities from one of the more common Unices would seem to be A Good Thing. Peter