Cronjob ezteamroom

Author Message

Juan Asencio

Tuesday 08 June 2010 2:46:50 am

Hello everybody,

I'm trying to add to crontab the frequent cronjob for my ezteamroom siteaccess, but I haven't succeed yet.

If I run the cronjob manually works without a problem:

/var/www/ez43webin$ php runcronjobs.php -s ezteamroom frequent

But when I add it to crontab it doesn't work:

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php frequent -q -s ezteamroom 2>&1

Any suggestions what could be missing?

Juan Asencio

Tuesday 08 June 2010 5:02:20 am

Here is a copy of my crontab:

# This must be set to the directory where eZ Publish is installed.

EZPUBLISHROOT=/var/www/ez43webin

# Location of the PHP Command Line Interface binary.

PHP=/var/www/ez43webin/bin/php

# Instruct cron to run the main set of cronjobs

35 6 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q 2>&1

# Instruct cron to run the "infrequent" set of cronjobs

20 5 * * 1 cd $EZPUBLISHROOT && $PHP runcronjobs.php -q infrequent 2>&1

# Instruct cron to run the "frequent" set of cronjobs

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q frequent 2>&1

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q frequent -s ezteamroom 2>&1

Juan Asencio

Tuesday 08 June 2010 6:00:41 am

Now is working, I was using the wrong directory for PHP Command Line Interface binary.

Here is the crontab in case anyone can use it.

# This must be set to the directory where eZ Publish is installed.

EZPUBLISHROOT=/var/www/ez43webin
# Location of the PHP Command Line Interface binary.

#PHP=/usr/local/bin/php

PHP=/usr/bin/php

# Instruct cron to run the main set of cronjobs

# at 6:35am every day

35 6 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q 2>&1
# Instruct cron to run the "infrequent" set of cronjobs

# at 5:20am every Monday

20 5 * * 1 cd $EZPUBLISHROOT && $PHP runcronjobs.php -q infrequent 2>&1
# Instruct cron to run the "frequent" set of cronjobs

# every 15 minutes

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q frequent 2>&1

*/5 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -s ezteamroom frequent 2>&1

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 30 2025 00:56:07
Script start
Timing: Jan 30 2025 00:56:07
Module start 'layout'
Timing: Jan 30 2025 00:56:07
Module start 'content'
Timing: Jan 30 2025 00:56:08
Module end 'content'
Timing: Jan 30 2025 00:56:08
Script end

Main resources:

Total runtime1.2734 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1094151.1953
Module start 'layout' 0.00540.0024 739.304736.6172
Module start 'content' 0.00781.2646 775.9219424.9609
Module end 'content' 1.27240.0009 1,200.882811.8750
Script end 1.2733  1,212.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2575160.0002
Check MTime0.00140.1078160.0001
Mysql Total
Database connection0.00080.060610.0008
Mysqli_queries1.229896.5787550.0224
Looping result0.00050.0381530.0000
Template Total1.244397.720.6222
Template load0.00160.128220.0008
Template processing1.242797.591320.6213
Template load and register function0.00020.014910.0002
states
state_id_array0.00060.048610.0006
state_identifier_array0.00170.133620.0009
Override
Cache load0.00140.1108550.0000
Sytem overhead
Fetch class attribute can translate value0.00070.052310.0007
Fetch class attribute name0.00090.069730.0003
XML
Image XML parsing0.00010.007910.0001
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00140.1127100.0001
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
20content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
14content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs