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.