From: ara.t.howard@... Date: 2006-10-27T03:44:20+09:00 Subject: Re: Ruby fs watcher? On Fri, 27 Oct 2006, Jean-Etienne Durand wrote: > Hi, > > I wrote a script processing some files in a directory: each time there > is a new file in a given directory, I do something. So, my problem here > is to know when a new file arrived in the dir. > What I do now is to try to open the file in exclusive mode and do not > process the file if it fails, but polling just kills the cpu. > > I am wondering if somebody could explain me an elegant notification > solution? > > Thank you, > Jean-Etienne http://codeforpeople.com/lib/ruby/dirwatch/ http://codeforpeople.com/lib/ruby/dirwatch/dirwatch-0.9.0/README -a -- my religion is very simple. my religion is kindness. -- the dalai lama