[Yum-devel] Making yum-cron send mail only if something changed

Ville Skyttä ville.skytta at iki.fi
Wed Sep 28 19:38:12 UTC 2011


On 09/28/2011 10:10 PM, seth vidal wrote:

> myjob 2>&1 | nag-once myjob 1w
> 
> it takes the output, compares it to the last run of the 'myjob' id and
> if the content is the same and the last time it emitted a message is
> less than time listed (1week) then it doesn't output anything.
> 
> If the content changes or more than a week has passed - then it emits
> the content.
> 
> I know it's not yum-cron specific but it is somewhat related.

Sounds great!  I'd be very interested in taking a look when you have
something ready.


More information about the Yum-devel mailing list