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.

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

You can call a method in a model by 'running script/runner "Model.method"'.

Matt Hall has some good information about running a controller with script/runner,

Best of luck, Aaron