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,

Best of luck,
Aaron