LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2009, 10:14 PM   #1
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Rep: Reputation: 16
inotify


hi ,
im trying to monitor file system activities in my FC5 , and i heard that inotify is a good mechanism , but i dont see the device file in /dev
when i configured my kernel ( 2.6.15 ) i enabled the option , but i still dont see it , i also cant find any good patches for it anywhere ..
can u plz tell me what 2 do , ty

Last edited by chymeira; 03-05-2009 at 10:21 PM.
 
Old 03-06-2009, 12:16 AM   #2
Suresh Maniyath
Member
 
Registered: Feb 2009
Location: India
Distribution: Fedora, Ubuntu
Posts: 37

Rep: Reputation: 19
Did you checked the dmesg log for inotify messages? If you see the message, but still the device nodes are not created, then you may need to create the inotify device node manually using mknod.

Regards
Suresh Maniyath
 
Old 03-06-2009, 02:54 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Check also the output for this, just to make sure:

Code:
zcat /proc/config.gz | grep -i inotify
There's a package called inotify-tools (though that depends on the distro you use and the packagers, actually), that should contain two tools, inotifywait and inotifywatch. Those are two simple examples on how to use inotify, and are also usable from regular shell scripts as well.
 
Old 03-06-2009, 04:58 AM   #4
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
inotify

thx for the replies , i tried both of ur commands , when i checked dmesg i got this :
SELinux : initialized(dev inotifyfs ,type inotifyfs )uses genfs_contexts

and when i tried zcat i got :
CONFIG_INOTIFY=y

so i guess ill try mknod and downloading inotify_tools

thx a lot
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using inotify with ramfs Shreyasdm Linux - General 1 09-28-2008 04:28 AM
inotify problems quixote08 Programming 2 01-26-2008 09:53 AM
udev and inotify aeruzcar Linux - General 3 03-24-2007 12:42 PM
Mounting Inotify? trscookie Linux - Software 1 12-19-2005 01:37 PM
Is inotify worth it? aneel.d Linux - General 0 10-14-2005 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 PM.

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
Open Source Consulting | Domain Registration