ezpublish.cron help!!

Author Message

Alessandro Cipriani

Wednesday 17 December 2003 12:36:41 am

hi all
i'm tryin' to automatic run the ezpublish.cron script in order to flush the pending list. i've seen that there is a file named ezpublish.cron that seems to be able to execute runcronjob.php every 15 minutes.
i modified the file with the path of php and so on but it seems to not work.

the content is:

# This must be set to the directory where eZ publish is installed.
EZPUBLISHROOT=c:\programmi\ezpublish\ezpublish

# Location of the PHP Command Line Interface binary.
PHP=c:\programmi\ezpublish\php\php

# Executes the runcronjobs.php script every 15th minute.
0,15,30,45 * * * * cd $EZPUBLISHROOT; $PHP -C runcronjobs.php -q 2>&1

any hint??

thanx

Balazs Halasy

Wednesday 17 December 2003 1:48:59 am

Hi,

It seems that you're running Windows, right? Well,
as far as I'm concerned, Microsoft Windows does not have a cron daemon/service. Cron is a UNIX thing that is used to run various scripts/programs periodically. If you want to run the runcronjobs.php script at specific times on Windows, I suggest that you use some kind of scheduling system. Perhaps you can use the "Windows Scheduler" solution. You need to actually execute the cronjobs script like this: "php -C runcronjobs.php"

Balazs

Alessandro Cipriani

Wednesday 17 December 2003 2:23:20 am

yes, you're right, i'm using windows
i'll execute a batch file using the windows utility

thanx a lot for the support

Alessandro

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