Inotify

I am using ruby-inotify in a small script that I am writing, using
ruby-inotify
It needs to watch directories recursively for added files, and I cannot
figure out how to make it watch more than 1 directory

Setting up a lot of watches is not good, because this has to watch
thousands of directories (it’s a backup system)

I was going to write something to deal with /dev/inotify, but my system
does to seem to have it

-palmer

Hi palmer

On 1/15/07, [email protected] [email protected] wrote:

I was going to write something to deal with /dev/inotify, but my system
does to seem to have it

I was going to do a project using inotify a while back too (ended up
not doing it for various reasons). Anyway, IIRC there is no longer a
inotify device file, everything is supposed to be done using the
inotify system calls (see man 7 inotify). I don’t know if the ruby
inotify binding has been updated for the newer versions of inotify
though.

Cameron M.

On Wed, 2007-01-17 at 04:08 +0900, Cameron M. wrote:

inotify binding has been updated for the newer versions of inotify
though.

It has, and it’s not too hard. I wrote my own binding, too, in not much
time.

Aria