David Reynolds wrote:
Are you aware that cron will email the output of the script it processes the user whose crontab it is running (or elsewhere if you specify by setting MAILTO) automatically unless you redirect it elsewhere?
Yes, but I wanted to set the subject and control the destination of the email on a per-task basis.
Incidentally I did initially just set MAILTO but that didn't seem to work (can MAILTO be an email address or does it need to be a user?)