I''ve got an application that needs to take action when new files appear in a directory. From a rails application, what would the easiest/best way to implement this be? When a new file appears, I''ll need to call an action on a controller with the filename. Any ideas much appreciated. Regards, JD -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> I''ve got an application that needs to take action when new files appear > in a directory. > > From a rails application, what would the easiest/best way to implement > this be? > > When a new file appears, I''ll need to call an action on a controller > with the filename. > > Any ideas much appreciated.How quickly does it need to be acted on? If one minute intervals are okay, setup a cron job to run a script via script/runner to process any files in that directory. Otherwise look at using backgrounddrb to notify that a file has been deposited and needs processing... -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---