On Wed, 2011-09-28 at 22:00 +0300, Ville Skyttä wrote:
> On 09/28/2011 09:29 PM, Ville Skyttä wrote:
> > Hello,
> > 
> > I use yum-cron always in CHECK_ONLY (or DOWNLOAD_ONLY) modes, and would
> > prefer if it would not send mail if nothing has changed since the last
> > run. [...]
> 
> Actually something like this would be even better:
> 
> Always send me the full list of available updates weekly, and daily a
> list of newly available updates that I haven't been notified of yet.
> The "daily" part of this might get somewhat hairy to implement, so it'd
> be ok if it sent the full list also daily but only if something changed
> since the last notification.

So - this is somewhat related to a discussion we were having about
cron-job notifications in fedora-infra today.

ie: if we are getting a chronic, ignoreable message, we don't need it
every hour or what-not - we need to be reminded that it is still
happening - but maybe not ALL the time.

so I am working on a nag-once script

you pipe all the output from a cron job to it like this:

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.

-sv


_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to