Hassan Schroeder wrote:
> On Sat, Sep 19, 2009 at 12:33 AM, Preksha Patel
> <rails-mailing-l...@andreas-s.net> wrote:
> 
>> so i want to use cron in ruby on rails application. in application i
>> want to fire some query everyday so where i should write the code for
>> query so that when cron is run that query is also fire??
> 
> Cron runs whatever you tell it too, wherever that is. :-)
> 
> If you want to run something with the Rails app's environment, you
> probably want to add the code to {RAILS_ROOT}/lib and invoke it
> via {RAILS_ROOT}/script/runner
> 
> HTH!
> --
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> twitter: @hassan

hi,
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??
i haven't used corn before so can you please tell me something in 
detail??

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

Reply via email to