On Wed, 2 Oct 2013 20:53:52 -0500 inode0 <inode0@xxxxxxxxx> wrote: > On Wed, Oct 2, 2013 at 10:10 AM, Ranjan Maitra > <maitra.mbox.ignored@xxxxxxxxx> wrote: > > Hi, > > > > I have a cron job running which yum updates all my machines once a day. > > All of these work fine. > > > > I also have a cron job which checks for kernel updates every hour and > > sends me a message if an updated kernel has been installed. Here is the > > relevant script: > > > > --- begin file called check-kernel.sh in my scripts/yum directory--- > > > > #!/bin/bash > > export DISPLAY=:0 > > > latestkernel=$(rpm -q kernel |tail -n1|sed -e 's/kernel-//') > > > > #echo "$latestkernel" > > > > if uname -a | grep -qv "$latestkernel"; then > > notify-send "Kernel UPDATE on ${HOSTNAME}: Running Kernel is $(uname > > -r) but lat est installed rpm is ${latestkernel}; REBOOT required" > > fi; > > > > > > --- end file called check-kernel.sh --- Got it! This works. However, I will also look at the link suggested by Matthew Miller (and also by Rick later on). I suspect that that is more general. Many thanks again for all the help! This is what makes this mailing list the best!! The link suggested by Matthew Miller ( http://earlruby.org/2008/08/update-pidgin-status-using-cron/ ) and the points provided by all others provided a lot of explanation and shed light into things I did not know much about. Ranjan ____________________________________________________________ GET FREE 5GB EMAIL - Check out spam free email with many cool features! Visit http://www.inbox.com/email to find out more! -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org