logging cronjob non-zero return codes

Ian Zimmerman nobrowser-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Nov 10 02:10:31 UTC 2005


Tim> How about this?  mm hh dd MM wd some-script || logger rc=$?  I'm
Tim> not aware of a builtin.

Fraser> Good idea, might have to resort to that.

Fraser> Had hoped to copy a config file across all the servers, editing
Fraser> thousands of cronjobs won't be fun.  Will think of suggesting
Fraser> this as a standard, this and banning all crap scripts that don't
Fraser> do any error checking/reporting of their own :-(

But don't the jobs output anything on stderr when they fail?  Cron should
then mail the output to root.

-- 
A true pessimist won't be discouraged by a little success.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list