From owner-freebsd-arch@FreeBSD.ORG Wed Mar 24 15:47:57 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 AB02716A4CE for ; Wed, 24 Mar 2004 15:47:57 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86B0D43D31 for ; Wed, 24 Mar 2004 15:47:56 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <200403242347560130013oqie>; Wed, 24 Mar 2004 23:47:56 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA67383; Wed, 24 Mar 2004 15:51:23 -0800 (PST) Date: Wed, 24 Mar 2004 15:51:22 -0800 (PST) From: Julian Elischer To: Garance A Drosihn In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: John Baldwin 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: Wed, 24 Mar 2004 23:47:57 -0000 On Wed, 24 Mar 2004, Garance A Drosihn wrote: > At 4:11 PM -0500 3/24/04, John Baldwin wrote: > >On Wednesday 24 March 2004, Garance A Drosihn wrote: > > > I noticed the upcoming version of OpenBSD will add the commands > >> `pkill' and `pgrep', which they picked up from NetBSD. These > >> commands also exist in Solaris and Linux. Anyone mind if I add > >> them to FreeBSD? I'd just pick up the versions from NetBSD, and > > > make whatever changes are needed for them to work on FreeBSD. > > > >What do they do? > > Oh. Yeah, it might help if I said something about that... > > The short answer: > > 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. > > The `pkill' command searches the process table on the running > system and signals all processes that match the criteria given on > the command line. > > Note that a running `pgrep' or `pkill' process will never consider > itself nor system processes (kernel threads) as a potential match. so pkill is like killall but miore flexible? how about you make killall a special case of pkill so we don't have the duplication.. > > The more complete answer: > http://www.openbsd.org/cgi-bin/man.cgi?query=pkill&sektion=1 > > -- > Garance Alistair Drosehn = gad@gilead.netel.rpi.edu > Senior Systems Programmer or gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >