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
> [EMAIL PROTECTED]
> www.linuxexpert.org
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 
*/15 * * * *    myscript || mail -s 'myscript failed' < canned_text me

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark

Reply via email to