Most cron implementations also support this format */5 * * * * /path/to/script
Beware that the full rails stack has gotten quite large and loading and unloading it from cron can be painful. If you don't need all of rails (for ex. ActionPack), just load what you need. Here's a quick script that loads active record and all the models in a rails project. It hasn't been tested, but should get you most of the way there. #!/usr/bin/env ruby require 'rubygems' require 'active_record' require 'action_mailer' connection = YAML::load(open('../config/database.yml'))["development"] connection["database"] = "../" + connection["database"] if connection["adapter"].match(/sqlite/) ActiveRecord::Base.establish_connection(connection) Dir["../app/models/*"].each {|m| require m} puts Link.find(:all).inspect On 6/9/07, mike <[EMAIL PROTECTED]> wrote: > > Robby Russell wrote: > > > > It really depends on what your method is doing... You might try > > running it manually and watch your processes in top. > > > > I'll try > Thanks :) > > -- > Posted via http://www.ruby-forum.com/. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---