Date: Wed, 24 Mar 2004 18:25:07 -0500 From: Garance A Drosihn <drosih@rpi.edu> To: John Baldwin <john@baldwin.cx>, arch@FreeBSD.org Subject: Re: Adding `pgrep' and `pkill' to /usr/bin Message-ID: <p0602046cbc87c722e8bc@[128.113.24.47]> In-Reply-To: <200403241611.03808.john@baldwin.cx> References: <p0602046abc879c5fe2f9@[128.113.24.47]> <200403241611.03808.john@baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0602046cbc87c722e8bc>