Hello,
we got a lot of frozen msg's in our exim queue. Now we have a little script to clean this. SO they don't stay there for some long time.
#!/bin/sh
echo "removing frozen messages"
/usr/sbin/exim -bp |grep "*** frozen ***" |awk {'print $3'}|xargs exim -Mrm
echo "removing invalid return adresses"
/usr/sbin/exim -bpru|grep '<>'|awk {'print $3'}|xargs exim -Mrm
and in our crontab we have
0-59 * * * * /root/scripts/clean-queue.sh >> /root/scripts/clean-queue.log
Now is the problem that he executes the script but only some parts of them. like for example the text writting in the log file. the rest he doesn't do.
Any help about this?
we got a lot of frozen msg's in our exim queue. Now we have a little script to clean this. SO they don't stay there for some long time.
#!/bin/sh
echo "removing frozen messages"
/usr/sbin/exim -bp |grep "*** frozen ***" |awk {'print $3'}|xargs exim -Mrm
echo "removing invalid return adresses"
/usr/sbin/exim -bpru|grep '<>'|awk {'print $3'}|xargs exim -Mrm
and in our crontab we have
0-59 * * * * /root/scripts/clean-queue.sh >> /root/scripts/clean-queue.log
Now is the problem that he executes the script but only some parts of them. like for example the text writting in the log file. the rest he doesn't do.
Any help about this?