I’ve (currently) got some code, in it’s own action in a controller. It
fetches email from imap and does all kinds of mojo with it. What I need
to do is have this run via a cronjob every so and so many minutes. Now,
currently, to run it I have to load http://url/controller/action for
that action. I want to run this silently in the backround on the server
running the app, so that things will seem automatically.
I am considering running curl or wget in a cronjob, but are there any
ways of doing this that are less caveman-ish?
scripts/runner – runner in the scripts directory is designed for
recreating the rails environment to run rails code from a cron job,
using all of your actions and etc. It has documentation in the usual
places.
…
…
John B.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.