On 01/03/15 15:50, Craig Skinner wrote:
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 -----


set the MAILTO variable in crontab.

hth

Fred
man 5 crontab not man 1 crontab
:~)

Reply via email to