[NTLUG:Discuss] File system modification tracker
Ralph Green
sirable at gmail.com
Wed Feb 13 15:18:15 CST 2013
Howdy,
Yes, you can watch all the files in a directry. In fact, that is
all you can do. You have to setup a separate inotify callback for
each directory.
Ralph
On 2/13/13, Christopher Cox <cjcox at acm.org> wrote:
> On 02/13/2013 12:49 PM, Ralph Green wrote:
>> Leroy,
>> I think you want to identify the files that are changing. At least
>> that seems to be the first step. I think I would just use a small
>> program to hook into inotify and log what files are changed. A python
>> script to do that should be less than a page. I can post a simple
>> version of it, if it would help.
>> Ralph
>
> Not sure if you can use inotify to "watch" a set of files in a directory
> tree
> though. You can watch a "directory" (one level) and you can watch for
> particular files... but since it's inode based, I don't think you can easily
> do
> more (just guessing though).
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list