'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

SCRIPT HERE

-- 
Christopher J. Fearnley          |  Linux/Internet Consulting
[EMAIL PROTECTED]                   |  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
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to