<br><br><div class="gmail_quote">On Wed, Mar 4, 2009 at 3:24 PM, william pink <span dir="ltr"><<a href="mailto:will.pink@gmail.com">will.pink@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>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).<br>

<br>Any ideas?</blockquote><div><br>My suggestion:<br><br>Use logger in your scripts to collect any and all important information.<br><br>Then use swatch to find patterns in the log file (i.e. when there is an error), swatch can email notifications if required.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Thanks,<br>Will<br>
<br>--<br>
Gllug mailing list  -  <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
<a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
<br></blockquote></div><br>