[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crons scripts should report status info in the mail

'Karl M. Hegbloom wrote:'
>Since the output from cron jobs is mailed anyhow, as it should be, I
>think that all cron scripts should report in as they are run, and that
>this should be made a standard.  Here's why.

But if they complete successfully they should be quiet.  Maybe this
would work:

set -e
function onerror { if [ "$?" -ne 0 ]; then echo "error in script $0"; fi; }

trap onerror 0


Christopher J. Fearnley          |  Linux/Internet Consulting
cjf@netaxs.com                   |  Design Science Revolutionary
http://www.netaxs.com/~cjf       |  Explorer in Universe
ftp://ftp.netaxs.com/people/cjf  |  "Dare to be Naive" -- Bucky Fuller

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: