Page 1 of 1

Cron Job

PostPosted:Tue Mar 08, 2011 12:25 am
by marctew
Hi everyone, I am looking to write a Cron Job which will automatically download a file from a set URL on a weekly basis and overwrite the existing file in OpenKM.
I run IT for an automotive dealership and the manufacturers change their brochures all the time without telling us. We keep a digital copy on our OpenKM repo for reference, but I need this to essentially update itself each week in order to stay current.

Please someone help! I've never really used cron jobs. I presume I would begin by calling wget, but I don't know how I would make OpenKM import the new file.

All help will be VERY much appreciated. I am running 5.0.1 by the way.

Cheers

Marc Tew
Hawkins Motors Blackwater
m.tew@hawkinsblackwater.co.uk

Re: Cron Job

PostPosted:Tue Mar 08, 2011 7:28 pm
by pavila
Do you mean the crontab implemente in OpenKM and managed from Administration? You can implement a job with a BeanShell script or with a JAR (in this case you have to define a MainClass in the MANIFEST.MF).

Re: Cron Job

PostPosted:Tue Mar 08, 2011 10:52 pm
by marctew
Sorry yeh, im hoping to use the cron system built into open km

Re: Cron Job

PostPosted:Mon Mar 21, 2011 6:40 pm
by pavila