I have several RHEL6 systems which I need to run a script daily. I created the script and placed it in /etc/cron.daily/ to be run by anacron.
In the script most of the standard output if redirected to a file. This file is then emailed to me in the script.
What is happening is it looks like anacron is stealing the output. The output is emailed to me by anacron with a subject of "Anacron job 'cron.daily' on <hostname>". But the email line in my script just sends me a blank email.
If I run the script manually, it works perfect.