logging cronjob non-zero return codes

Fraser Campbell fraser-eicrhRFjby5dCsDujFhwbypxlwaOVQ5f at public.gmane.org
Fri Nov 11 01:13:31 UTC 2005

Ian Zimmerman wrote:

> 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.

Indeed they do and scripts that output good error information are worth 
every penny.  Log scanning for cronjob rc codes is/was mainly to satisfy 
(shut up) auditors, though it is a nice double check for SA.

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