LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-15-2009, 06:36 AM   #1
wikapuki
Member
 
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, 06:46 AM   #2
wikapuki
Member
 
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, 06:46 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,309

Rep: Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031
inotify{watch} on /boot/grub ?.
 
Old 08-15-2009, 07:10 AM   #4
wikapuki
Member
 
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.

Cheers
 
  


Reply

Tags
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 07:25 AM
howto set up a dual monitor issey Ubuntu 1 01-17-2007 05: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 08:21 PM
Howto Network Monitor bierpullen Ubuntu 1 02-26-2006 01:43 PM
installed fluxbox... howto: trey85stang Slackware 2 03-10-2004 07:52 PM


All times are GMT -5. The time now is 07:37 AM.

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