Forums / Developer / How does cronjobs.php selects siteaccesses?
Massimiliano Bariola
Tuesday 18 April 2006 7:17:56 am
Hi,
I am writing an addition to the cronjobs since I need some operation done. Usually cronjobs.php is ran via shell; how do I specify which siteaccess should it run against?
e.g. this cronjob script I am running needs to use the ez database installation of only a certain siteaccess , and not another one. or I might want first to run my script against the test siteaccess and after that, to run it against the live siteaccess. (this is actually my situation).
so, where do I look to be able to specify which ini settings and thus databases should the script be using?
thank you,
Max
Kristof Coomans
Tuesday 18 April 2006 8:45:48 am
./runcronjobs.php --help will show you the possible arguments
use -s to specify the siteaccess
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Yngve Bergheim
Wednesday 19 April 2006 5:39:55 am
You will also need to set up a new cronjob.ini.append.php in /settings/ and add this part:
[CronjobPart-mynewcronjob]Scripts[]=mynewcronjob.php
Where mynewcronjob is, well, the new of the new cronjob :-)