On 16/12/11 11:57, Frank Elsner wrote:

>> Rather than writing a script, you could just stick this in a cron job:
>> 
>> if [ `exiqgrep -c|awk {'print $1'}` -gt 2500 ]; then echo "Large Mail
>> Queue"|mail -s "The Subject" [email protected]; fi
> 
> if [ `exim -bpc` -gt 2500 ]; then ...

This is going to turn into one of those competitions to find the
shortest command line isn't it. ;)

-- 
Mike Cardwell https://grepular.com/  https://twitter.com/mickeyc
Professional  http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu   0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to