1
I have a file called Exim_queue_size
in the root directory. It contains one line:
exim -bpc | mail -s'Exim_queue_size' bert@example.com
It has had its permissions set with chmod +x , and is thus executable.
If I run ./Exim_queue_size
, it works perfectly and mails the queue size count.
If I load to run in the crontab, with the line
0 3,6,9,12,15,18,21,0 * * * /root/Exim_queue_size
I receive a correctly titled e-mail with no count attached.
Any ideas please?
Please provide the misbehaving entry exactly as stated in your crontab. In addition, please provide any configuration/environment lines, if present, from your crontab. I suspect environment difference. – Jarmund – 2015-05-11T20:13:09.530
@Jarmund My cron entry is and i see no environment/config line in the crontab file.
code
0 0,3,6,9,12,15,18,21 * * * /root/Exim_queue_size – Brian Ellse – 2015-05-12T00:58:32.280