[Gllug] Crons and mail
Adrian McMenamin
adrian at newgolddream.dyndns.info
Wed Mar 4 15:32:22 UTC 2009
On Wed, March 4, 2009 3:24 pm, william pink wrote:
> 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).
>
OK, this is one of these "I wouldn't start from there" answers to typical
of this list :) - but I had a (somewhat) similar issue the other week and
just used a procmail recipe to squash the email at the recipients end
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list