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

Re: Cron jobs



On Thu, Nov 11, 1999 at 11:41:19AM -0500, Brian Schramm wrote
> OK I have looked at the cron and crontabs man pages to no avail.  I would
> like to have a script that runs every 15 minutes only send me an email if
> it errors.  The script exits out if certain conditions are good.  I have
> it exiting with an exit command in a if statement.
> 
> What I want is it to email me if it does not exit out prematurely.  That
> way I can tell when I had to run the script so I can get a feal as to how
> often I end up with a problem.
> 
> Any ideas?
> 
> Brian Schramm
> bri@penguinpowered.com
> www.linuxexpert.org
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
*/15 * * * * 	myscript || mail -s 'myscript failed' < canned_text me

-- 
huiac@camtech.net.au
john@huiac.apana.org.au
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark


Reply to: