Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 08-15-2009, 07:36 AM   #1
Registered: Jun 2009
Distribution: Debian
Posts: 78

Rep: Reputation: 15
Howto monitor a new kernel installed but not yet used

debian Linux i686 perl

I have a little perl script (I wrote it) that monitors my house (X10, IR, networks etc) and speaks via festival when things change or are changed by me (for confirmation).

Today squeeze got a new kernel version, now she knows that she is running Linux 2.6.26-2-486 i686 however an update has happened and a new version is installed, Linux 2.6.30-1-486 i686, which will be in use on the next boot up.

What I would like to do is find the correct way to determine this event has happened so she can ask me permission to reboot.

Apart from monitoring the grub file menu.1st mod time and then parsing for changes and considering this is about to change cos of GRUB2, is there a more standard way I should use?
Old 08-15-2009, 07:46 AM   #2
Registered: Jun 2009
Distribution: Debian
Posts: 78

Original Poster
Rep: Reputation: 15
Was also thinking of just doing a directory listing of /boot for initrd.img* files.
Old 08-15-2009, 07:46 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,563

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
inotify{watch} on /boot/grub ?.
Old 08-15-2009, 08:10 AM   #4
Registered: Jun 2009
Distribution: Debian
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks for that, will use it later as migrating Arnie (name of monitoring script) over to mono type c thingy bobby, currently use Log::Log4perl::Config::Watch in Arnie for watching files etc

my $grubfile = Log::Log4perl::Config::Watch->new(file => "/boot/grub/menu.lst", check_interval => 60);

I was just hoping there was some sort of linux New kernel pending standard.



debian, grub, grub2, i686, kernel, linux, perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
howto configure monitor (hp w2207) in X marsrc Linux - General 2 01-15-2009 08:25 AM
howto set up a dual monitor issey Ubuntu 1 01-17-2007 06:17 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 09:21 PM
Howto Network Monitor bierpullen Ubuntu 1 02-26-2006 02:43 PM
installed fluxbox... howto: trey85stang Slackware 2 03-10-2004 08:52 PM

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration