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,
http://matthall.wordpress.com/2006/12/06/how-to-execute-a-rails-controller-action-via-cron/

Best of luck,
Aaron