Autor: John Jetmore Data: A: exim-users Assumpte: Re: [exim] counting messages in queue
On Mon, Dec 6, 2010 at 9:15 AM, Warren Baker <warren@???> wrote: > On Mon, Dec 6, 2010 at 4:00 PM, John Jetmore <jj33@???> wrote:
>> or even:
>>
>> exipick -bpc -x
>
> or even:
>
> exiqgrep -xic
>
> but that will show you
>
> x matches out of y messages
>
> so some awk fu:
>
> exiqgrep -xic | awk '{print $1}'
>
> so a gazillion ways to skin this cat.
Party pooper =).
OK, since the OP mentioned performance, here's some real information.
exim - written in C, reads information directly from the queue files
exipick - written in perl, reads information directly from the queue files
exiqgrep - written in perl, runs exim and then massages its output.
So, for pure performance, use exim if it will give you what you want,
then use exiqgrep, then exipick.
exipick will do things that neither exim nor exiqgrep can do, but exim
is faster than exipick at reading the queue. If "exiqgrep -xc" gives
you what you want, that's probably the fastest way to get it.
If you have to massage the output of exiqgrep using external tools,
exipick might be faster, just depends on the exact state of your
machine.