[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adding `pgrep' and `pkill' to /usr/bin
- Subject: Adding `pgrep' and `pkill' to /usr/bin
- From: peterjeremy at optushome.com.au (Peter Jeremy)
- Date: Thu Mar 25 00:49:06 2004
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
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.
Visit your host, monkey.org