From: Hal Fulton Date: 2004-10-11T17:18:20+09:00 Subject: Re: Task scheduling using Ruby? nkb wrote: > Hi. > I would like to schedule a task (e.g check if a file exists or if the > date of the files in a diretory are newer than yesterday, etc.) on Linux > using Ruby. Can this be done, if so how? I supposed I would run the > script as root background? Thanks for any pointer!! > Gavin Kistner released something two weeks ago that might interest you: > http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html > > A DirectoryWatcher keeps an eye on a certain directory, firing off your own custom > procs when a file is added to, modified in, or removed from that directory. > > See the link above for documentation. Download available from > http://phrogz.net/RubyLibs/DirectoryWatcher.rb If that doesn't get you in the right direction, ask us again... Hal