Auteur: Bruce Richardson Date: À: Exim Users Sujet: Re: [Exim] Exim is Unreasonably slow
On Fri, May 07, 2004 at 02:44:15PM +0100, Ian A B Eiloart wrote: >
>
> --On Friday, May 7, 2004 1:34 pm +0100 Bruce Richardson
> <itsbruce@???> wrote:
>
> >On Fri, May 07, 2004 at 07:12:04AM -0400, David Garza wrote:
> >>When this runs, "killer," a process killer I found on the internet that
> >>will use ps aux, grep the command, then locate the process ID, and kill
> >>all matching results.
> >
> >What's wrong with pkill?
>
> Its system specific. Solaris specific, I think. It certainly isn't in BSD
> (use "killall" instead).
I'm guessing he's using Linux, from the "ps aux" (it would have to be
"-aux" on FreeBSD, no?). Linux has had pkill for a while. I would
encourage Linux users to use pkill rather than killall on the basis that
if they ever happen upon some other *nix variant, typing pkill on the
wrong system will not get them into the same trouble as typing killall
on the wrong system.
Wandering back to the original point, assuming the OP *is* using Linux.
pkill will be more efficient than killer (which is a csh script). I
have the impression that he's more concerned with performance than
portability.