Re: [exim] Need Help

トップ ページ
このメッセージを削除
このメッセージに返信
著者: John Burnham
日付:  
To: 'Miguel Coucello', 'Exim-users@exim.org'
題目: Re: [exim] Need Help
>
> I need a script, or help doing one.
>
> I need a script that sends me an email when qeue is bigger than 2.500
> emails.
>
> Can anyone help me ?
>


Totally untested and before I've finished my coffee, but here's some pseudo code

#!/bin/bash

MSGNO=$(/path/to/exiqgrep -b * | wc -l)

if [ $MSGNO -gt 2500 ]; then

do some stuff like sending mail

fi


John