Forums / Developer / Passing custom CLI params for custom cronjobs
Piotrek KaraĆ
Tuesday 16 September 2008 4:31:23 am
Any non-hacking method of passing user params to custom cronjobs thought CLI? Any existing hacks?
Thanks,Piotrek
-- Company: mediaSELF Sp. z o.o., http://www.mediaself.pl eZ references: http://ez.no/partners/worldwide_partners/mediaself eZ certified developer: http://ez.no/certification/verify/272585 eZ blog: http://ez.ryba.eu
Maxime Thomas
Monday 23 August 2010 4:48:20 am
Yes, it's a bit late I guess but in your cornjob, you can do like this :
$options = $script->getOptions("","",array());
And in it you have an array with all your arguments.
Maxime Thomas [email protected] | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas