Re: Adding `pgrep' and `pkill' to /usr/bin

From: Peter Jeremy (peterjeremy_at_optushome.com.au)
Date: 03/25/04

  • Next message: Bruce M Simpson: "Re: Adding `pgrep' and `pkill' to /usr/bin"
    Date: Thu, 25 Mar 2004 19:48:37 +1100
    To: Alexey Dokuchaev <danfe@nsu.ru>
    
    

    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
    _______________________________________________
    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"


  • Next message: Bruce M Simpson: "Re: Adding `pgrep' and `pkill' to /usr/bin"