On 03.10.2013 02:55, Ranjan Maitra wrote: > > Thanks! But this does not "work" either. Here is what I tried in my > crontab -e: > > 0 * * * * maitra DISPLAY=:0.0 $HOME/scripts/yum/check-kernel.sh > > (maitra is my username). > > Here is how I changed my check-kernel.sh, though I am not sure if there > was a problem with the earlier one.... > > $more check-kernel.sh > > #!/bin/bash > # from http://goo.gl/Mqq6UP > > 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}: " \ > "<b><i>Running</i></b> kernel is > <b><i>$(uname -r | awk '{gsub(/*PAE/,""); print}')</i></b> > but <b>latest</b> <b><u>installed</u></b> is > <b><u>${latestkernel}</u></b> > required > <b><u>REBOOT</u></b>" > fi; > > How do you get yours to work? > > (Works fine from the commandline, of course.) Btw, FWIW, I am using > dunst. http://goo.gl/Mqq6UP Cronie-notify-send-Dunst-Openbox.webm poma -- 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