Forums / Developer / Passing custom CLI params for custom cronjobs

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Passing custom CLI params for custom cronjobs

Author Message

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
maxime.thomas@wascou.org | 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