Hi, everyone. I wrote a ror app. One of the methods in controller extracts data from files and saves it to database. Because there are many new files every night, is it possible to run this method only every night or every other night? Thanks in advance. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Quoting Ichiro Saga <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> Hi, everyone. I wrote a ror app. One of the methods in controller > extracts data from files and saves it to database. Because there are > many new files every night, is it possible to run this method only every > night or every other night? Thanks in advance. >Simplest way in Linux/Unix/MacOSX is with cron and ''script/runner Class.class_method'' or something similar. Probably best to run it as same user as the Rails server to avoid permission problems. There are other ways that may be more appropriate in some cases. If you care to share more details I could recommend an ever better method. Jeffrey -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.