[Gllug] Crons and mail
william pink
will.pink at gmail.com
Wed Mar 4 15:24:16 UTC 2009
Hi,
Currently we are using the MAIL TO variable to send out mail regarding the
various crons that are running, unfortunately or not I have a cron that runs
every minute that produces output which will of course cause cron to send
out a email. What I really want to do is send out a email if theres a error,
there is a bash script that runs a Ruby rake task so I presume there is a
way of manipulating the output of that or perhaps log to a file that can be
tailed+grepped for any obvious error keywords (which doesn't sound like a
great solution).
Any ideas?
Thanks,
Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090304/d5ac3a81/attachment.html>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list