On Sun, Sep 20, 2009 at 8:56 PM, Preksha Patel
<[email protected]> wrote:

> as you told to add the code to {RAILS_ROOT}/lib so you mean to say to
> add the code in lib folder, i have to make one file with extension is
> what?? and {RAILS_ROOT}/script/runner is the command which i should
> run??

~/projects/example$ more lib/whatever.rb
class Whatever
  class << self
    def say_it
      puts "it, that's all"
    end
  end
end
~/projects/example$ script/runner Whatever.say_it
it, that's all
~/projects/example$

> i haven't used corn before so can you please tell me something in
> detail??

Have you read the man pages for cron and crontab? That should be
enough examples to get you started, I'd think. :-)

-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to