Could cron/at/batch be altered to mail the exit code of failed silent jobs?
http://marc.info/?t=142030044100002&r=1&w=2 ----- Forwarded message from Craig Skinner <skin...@britvault.co.uk> ----- Date: Sat, 3 Jan 2015 15:50:36 +0000 From: Craig Skinner <skin...@britvault.co.uk> To: m...@openbsd.org Subject: Failed cron jobs are silent Back in the memory of somewhere??? I worked, failed cronjobs would mail their return code if not zero. Something like: "Cron Job false exited with return code 1" I cannae mind if it was Solaris or Linux, or whatever they were using... Can OpenBSD's cron do that too? Here's some silent & noisey sample shite jobs: ----- Forwarded message from Cron Daemon <r...@britvault.co.uk> ----- Date: Sat, 3 Jan 2015 15:30:02 +0000 (GMT) From: Cron Daemon <r...@britvault.co.uk> To: skin...@britvault.co.uk Subject: Cron <luser@sir-puffy> crontab -l # Silent: * * * * * true * * * * * false * * * * * exit * * * * * exit 111 # http://en.wikipedia.org/wiki/111_(emergency_telephone_number) # Mail: * * * * * false || print -u2 "exited with return code $?" * * * * * false || print -u2 'http://en.wikipedia.org/wiki/One_Tree_Hill_(song)' * * * * * crontab -l * * * * * logname; umask; pwd; printenv | sort ----- End forwarded message -----