I have a job scheduled via cron.
It runs fine but sends me a blank email every day.
There are no echo or print statements in the job.
Why am I getting this email and how do I stop it ?
This is normal behaviour. To stop receiving the mail, your crontab entry should look something like:
00 02 * * * /script > /dev/null 2>&1
The latter parts redirect output to /dev/null, the bit-bucket. Be warned that any errors will also be lost, so you might not know if a job has failed if you take this course. Change /dev/null to the path to a log file if you don't want this to happen. HTH.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.