Linked by Thom Holwerda on Fri 16th Apr 2010 09:49 UTC
Linux Learn how to use inotify functions for a simple monitoring app. Download the sample code and Use inotify when you need efficient, fine-grained, asynchronous monitoring of Linux file system events. Use it for user-space monitoring for security, performance, or other purposes.
Order by: Score:
Getting there
by malxau on Fri 16th Apr 2010 22:16 UTC
malxau
Member since:
2005-12-04

So now a caller can monitor a subtree in Linux, in 2010. NT allowed this in 1993 (see FindFirstChangeNotification, extended in Windows 2000 by ReadDirectoryChanges.)

When will there be a persistent change log (eg FSCTL_READ_USN_JOURNAL)?

Reply Score: 1

RE: Getting there
by Zifre on Fri 16th Apr 2010 23:06 UTC in reply to "Getting there"
Zifre Member since:
2009-10-04

So now a caller can monitor a subtree in Linux, in 2010. NT allowed this in 1993 (see FindFirstChangeNotification, extended in Windows 2000 by ReadDirectoryChanges.)

inotify has been in the mainline Linux kernel since 2005. dnotify was around long before that. The fact that this article is new does not mean that inotify is new.

Reply Score: 3

RE: Sounds a lot like broken Kqueue
by kaiwai on Sat 17th Apr 2010 10:30 UTC in reply to "Sounds a lot like broken Kqueue"
kaiwai Member since:
2005-07-06



True, and IIRC kqueue was added to Mac OS X a few years ago as well. What ever the case maybe, I don't want to start a flame war but it seems that in the Linux world very little time is paid to logically planing something - instead there seems to be a haphazard approach of throwing things against the wall and seeing which one sticks. It may get able to get the features into the operating system quickly but in the long run when many are dependent on it there are problems. HAL is the best example of a noble idea turned into a horrible frankstein and it has been almost a year since libudev been pushed as an alternative and still many projects are reliant on HAL.

Reply Score: 3

inotify-tools
by blabj on Mon 19th Apr 2010 14:21 UTC
blabj
Member since:
2010-04-19

You can do some interesting things with bash the inotify-tools package (for those not inclined to low-level programming). One example I posted here: http://serenadetoacuckooo.blogspot.com/2009/10/real-time-log-file-w...

Reply Score: 1