blinking bear
2007-Mar-21 14:53 UTC
Cron job calling Ruby script to interact with rails code
I''m really naive on this subject, forgive me. I need to write a cron job that will run a ruby script. The script needs to be able to access my rails code. What do I need to include/require in a .rb file to get access to teh same stuff as script/console? And where does this file have to live? thanks! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Zack Chandler
2007-Mar-21 15:09 UTC
Re: Cron job calling Ruby script to interact with rails code
./script/runner -- Zack Chandler http://depixelate.com On 3/21/07, blinking bear <blinkingbear-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m really naive on this subject, forgive me. I need to write a cron job > that will run a ruby script. The script needs to be able to access my rails > code. What do I need to include/require in a .rb file to get access to teh > same stuff as script/console? And where does this file have to live? > > thanks! > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---