Hi
I want to setup a cronjob to auto mail the Exim queue size to myself so that I can take suitable action if the queue becomes too large.
The following command works on the shell prompt but does not work from a shall script.
exim -bpc | mail -s'Exim queue size' [email protected]
When run from a shell script, it just sends a blank mail. The queue size is not being piped.
Also, I want to modify this to alert me only when the size goes above, say 5000 or some other number. How to do that?
Thanks in advance!
I want to setup a cronjob to auto mail the Exim queue size to myself so that I can take suitable action if the queue becomes too large.
The following command works on the shell prompt but does not work from a shall script.
exim -bpc | mail -s'Exim queue size' [email protected]
When run from a shell script, it just sends a blank mail. The queue size is not being piped.
Also, I want to modify this to alert me only when the size goes above, say 5000 or some other number. How to do that?
Thanks in advance!