inotify

P

palmem

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
 
C

Cameron Matheson

Hi palmer

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 Matheson
 
A

Aredridel

Hi palmer



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.

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

Aria
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,222
Messages
2,571,141
Members
47,756
Latest member
JulienneY0

Latest Threads

Top