exiqgrep not running in my cron

lordcage

Member
Apr 29, 2004
19
0
151
Hello,

I'm trying to run from my Cron the following line:

/usr/sbin/exiqgrep -o 86400 -i | /usr/bin/xargs exim -Mrm

I got it here in this forum, and it cleans messages older than 24h in the queue . The cmd line works perfectly, but only when ran manually.

It's not working from my crontab. I tried to put it into a script, but it's still not working.

My crontab is:

4 * * * * /etc/rc.d/limpa_queue_exim > /dev/null 2>&1

root@hserv3 [~]# cat /etc/rc.d/limpa_queue_exim
/usr/sbin/exiqgrep -o 86400 -i | /usr/bin/xargs exim -Mrm

/etc/rc.d/limpa_queue_exim is chmoded to 755.

Any ideas on why it's not working ???