11

Crontab job not emailing on failure

view full story
linux-howto

http://unix.stackexchange.com – I have a cron job on Debian: 1 * * * * /home/paradroid/bin/myscript.sh >/dev/null There is an installed and configured MTA, and I have received emails when the script has a syntax error, so I have always thought that I would be informed when anything goes wrong. The script downloads a file using curl through a proxy. Recently the proxy has failed so curl could not download. It is the last command in the script, which has been exiting with the error code 7. I thought I would be getting emails when this happens, but I have not. How come I get email alerts from something like syntax er (HowTos)