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

From: Alexey Dokuchaev (danfe_at_nsu.ru)
Date: 03/25/04

  • Next message: David Schultz: "Re: Adding `pgrep' and `pkill' to /usr/bin"
    Date: Thu, 25 Mar 2004 12:53:14 +0600
    To: Julian Elischer <julian@elischer.org>
    
    

    On Wed, Mar 24, 2004 at 03:51:22PM -0800, Julian Elischer wrote:
    >
    >
    > 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.

    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?

    > >
    > > 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..

    Seconded here. Frankly, I tend to go against populating base system
    with utilities of not so strict orthogonality.

    ./danfe
    _______________________________________________
    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: David Schultz: "Re: Adding `pgrep' and `pkill' to /usr/bin"

    Relevant Pages

    • Re: Adding `pgrep and `pkill to /usr/bin
      ... > given on the command line. ... Criteria includes matching against the ... > The `pkill' command searches the process table on the running ... how about you make killall a special case of pkill so we don't have the ...
      (freebsd-arch)
    • Re: Remove Rows in a List Box after fields are updated
      ... The crieria populates the list box... ... Query has the criteria set to NOT show on list if Term Date is ... No command button needed. ... Once the data is entered thru the text boxes, ...
      (microsoft.public.access.forms)
    • Re: Search records that will show up in a list box on a form.
      ... >>> I have created command buttons that look for specific criteria from ... >>> query table. ... you could create a query that uses your criteria and base a report ... Private Sub cmdFilter_Click ...
      (microsoft.public.access.forms)
    • Re: 2 Form Questions for the Group...
      ... You cannot use a multi-select list box directly as the criteria in a query, ... > Is there a command that will allow me to match ... > I have a form with list boxes that I am using to select filter criteria ...
      (microsoft.public.access.queries)
    • Re: Using a form to select records
      ... which I can make visible by clicking a command ... If you prefer to use a pop-up form I think you will need ... The criteria would then refer to the pop- ... set up the parameter query. ...
      (microsoft.public.access.forms)