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.

eZ debug

Timing: Jan 18 2025 02:13:20
Script start
Timing: Jan 18 2025 02:13:20
Module start 'layout'
Timing: Jan 18 2025 02:13:20
Module start 'content'
Timing: Jan 18 2025 02:13:21
Module end 'content'
Timing: Jan 18 2025 02:13:21
Script end

Main resources:

Total runtime1.1966 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.9141152.6094
Module start 'layout' 0.00480.0023 741.523439.4375
Module start 'content' 0.00701.1880 780.9609593.4844
Module end 'content' 1.19510.0015 1,374.445312.1875
Script end 1.1966  1,386.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2489160.0002
Check MTime0.00120.1036160.0001
Mysql Total
Database connection0.00080.066210.0008
Mysqli_queries1.142595.4737620.0184
Looping result0.00060.0498600.0000
Template Total1.170197.820.5851
Template load0.00170.145820.0009
Template processing1.168497.636420.5842
Template load and register function0.00020.018310.0002
states
state_id_array0.00080.066210.0008
state_identifier_array0.00160.130320.0008
Override
Cache load0.00140.1210280.0001
Sytem overhead
Fetch class attribute can translate value0.00080.065730.0003
Fetch class attribute name0.00170.141660.0003
XML
Image XML parsing0.00110.091830.0004
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00080.0672220.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs