[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

palmem

1/16/2007 2:47:00 AM

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

2 Answers

Cam

1/16/2007 7:09:00 PM

0

Hi palmer

On 1/15/07, palmem@gmail.com <palmem@gmail.com> 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 Matheson

Aria Stewart

1/16/2007 7:13:00 PM

0

On Wed, 2007-01-17 at 04:08 +0900, Cameron Matheson wrote:
> Hi palmer
>
> On 1/15/07, palmem@gmail.com <palmem@gmail.com> 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.

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

Aria