Values to cron job

Author Message

Kaushal Thakor

Saturday 19 February 2011 2:00:28 am

I know, I can't pass parameters to cron jobs. But I need to pass some values to it.

I made one php file, in which I read one text file which contains values.

Then I pass this values to variable & then I run cronjob to run this php file.

Php file is running fine.

But in that, only null values are passed.

Can't I pass any value by any method while running cronjobs?

Thanks.

Kaushal Thakor

Sunday 20 February 2011 10:58:21 pm

Solved issued.

Nicolas Pastorino

Monday 21 February 2011 12:37:34 am

Hi Kaushal,

Good to hear you found a solution. Closing the barn door after the horses have escaped, here are a few interesting resources on the topic :

  • eZPedia page on cronjobs in eZ, also presenting an alternative : eZ CLI scrips. http://ezpedia.org/en/ez/cronjob
  • eZ Publish cronjobs documentation : http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Features/Cronjobs

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Bertrand Dunogier

Monday 21 February 2011 1:39:32 am

Hey !

Two things:

  • Could you please share your solution ? It is very likely that it will help somebody else sometime.
  • Could you mark the topic as solved (green thing next to the initial forum post's title)

Thanks, and welcome aboard.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.