Ruby + Cron Job

Hello all,

I have to write a cron_job and have to access a remote database in that
cron
job. How can I do it? Any tutorials or can anyone please guide me.


Regards

Haris G.

Sorry I forgot to mention, the remote database is MySQL.

On Feb 7, 2008 12:39 PM, Haris G. [email protected] wrote:

Hello all,

I have to write a cron_job and have to access a remote database in that
cron job. How can I do it? Any tutorials or can anyone please guide me.


Regards

Haris G.


Regards

Haris G.

You can call a method in a model by ‘running script/runner
“Model.method”’.

Matt H. has some good information about running a controller with
script/runner,
http://matthall.wordpress.com/2006/12/06/how-to-execute-a-rails-controller-action-via-cron/

Best of luck,
Aaron

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs