From: Dave Lilley Date: 2010-09-27T19:43:39+09:00 Subject: new file arrivals into a specific directory / folder greetings one and all, My need is this. Get my program to be executed when ever something new arrives into a directory. the data in the directory could be an email or it could be a file. most likely plain text the transport media unknown yet (transport could be using email or cellphone / digital RF into the PC ergo a file). frequency of scans for new arrivals may need to seconds or to minutes so variability here would be great here too. From reading months ago I wonder if notify or inotify or even cron would be good fit. Does anyone here know of a gem that could do this and if so please point me in the direction? Ruby currently using is 1.8.7 not sure if I'll take what i've done to 1.9.x yet. as I've got to get my 1st project bedded in (this will be another project taking what i've done a step further). Or reason for not using ruby for this task of monitoring the directory? after doing a limited search of the list I've found filewatcher and directorywatcher just to name 2 at least. I know these are oldish but is there anything newer/better out there? I will be using the program on linux (specifically Kubuntu 10.04 but this maybe moved to a debian dedicated server) desktop pc. cheers, dave. -- Posted via http://www.ruby-forum.com/.