From: John W Higgins Date: 2010-09-28T02:41:45+09:00 Subject: Re: new file arrivals into a specific directory / folder --00c09f9b0939c898590491413d3b Content-Type: text/plain; charset=ISO-8859-1 Morning Dave, On Mon, Sep 27, 2010 at 3:43 AM, Dave Lilley wrote: > greetings one and all, > > My need is this. > Get my program to be executed when ever something new arrives into a > directory. > Very straight forward here. Using the rb-notify library ( http://github.com/nex3/rb-inotify) i = INotify::Notifier.new i.watch('/directory', :close_write) do |ev| puts "#{ev.name.to_s} just added" end i.run You could shell out or embed this in your app or whatever else you wanted but this will fire the block for every new file placed in the directory. John --00c09f9b0939c898590491413d3b--