LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-14-2012, 12:00 PM   #1
Rahil Parikh
LQ Newbie
 
Registered: Nov 2010
Posts: 15

Rep: Reputation: 0
Kernel event notification


Hello,

I want to write a program that will be notified by kernel ( or something similar ) for system events. Like, someone opens a file ABC then my program should get notification about that change.

Is it possible? If so, how?

Thanks for help!
 
Old 03-14-2012, 01:04 PM   #2
firstfire
Member
 
Registered: Mar 2006
Location: Ekaterinburg, Russia
Distribution: Debian, Ubuntu
Posts: 640

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Hi.

You probably looking for inotify.
 
Old 03-14-2012, 01:13 PM   #3
Rahil Parikh
LQ Newbie
 
Registered: Nov 2010
Posts: 15

Original Poster
Rep: Reputation: 0
@firstfire - Thanks for help! It looks like it will work only for filesystems. Or can it work for anything else? ( May be like, someone started new process?! )
 
  


Reply

Tags
event, notification


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
dm/mulitpath event notification -- actionable? wimcolgate Linux - Server 1 06-26-2008 11:01 AM
event notification for resolution change?? pndhana General 6 09-22-2002 06:10 PM
event notification for resolution change?? pndhana Linux - Hardware 2 09-22-2002 05:38 PM
event notification for resolution change?? pndhana Linux - Newbie 1 09-22-2002 06:04 AM
event notification for resolution change?? pndhana Programming 0 09-22-2002 12:49 AM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
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