Forum: Ruby on Rails Cron job calling Ruby script to interact with rails code

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
181976602397443ce119909b9d82cae2?d=identicon&s=25 blinking bear (Guest)
on 2007-03-21 15:55
(Received via mailing list)
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!
C4dc94c893471878a105761a9207f29b?d=identicon&s=25 Zack Chandler (Guest)
on 2007-03-21 16:11
(Received via mailing list)
./script/runner

--
Zack Chandler
http://depixelate.com
This topic is locked and can not be replied to.