I need a job, a cronjob to be specific...

I need a job, a cronjob to be specific...

Monday 06 June 2005 10:41:47 pm - 3 replies

Modified on Monday 06 June 2005 10:47:22 pm by Nathan Moke

Author Message

Nathan Moke

Monday 13 June 2005 3:39:29 pm

Cmon people, someone throw me a bone...please

Xavier Dutoit

Tuesday 14 June 2005 12:06:06 am

Hi,

You have to run the cron from the shell (php cli). What's the error message(s) when you run it and what's the command you run ?

If you don't provide some informations about what you've tried and what you get, we won't be able to help you ;)

X+

http://www.sydesy.com

Nathan Moke

Thursday 16 June 2005 6:58:59 pm

Thanks for your reply Xavier. As indicated in my original post, all of the fixes that I attempted did not generate any records or log files (or none that I was able to see anyway).

For example I tried calling the cronjob.php file from the browser, where it then generated the <i>currently using the apache interface blah blah blah</i> error.
I then tried inserting the following script into the index.php file:

<i>include_once('kernel/classes/notification/eznotificationeventfilter.php' );
eZNotificationEventFilter::process();</i>

I refreshed the home page again and then - nothing.
I tried a number of variations of setting up the php.exe and php-cli.exe to run the cronjobs script, such as:
* using the windows scheduler application
* creating batch files and
* configuring php shortcut files
In all of the above examples a command window would open but the text would flash across the box and then close before I had a chance to read it. That said, it didnt launch my runcronjobs.php file anyway, as none of the workflows had been processed.

Good news, however, I had a breakthrough last night! My problem(s) it would seem, were a result of incorrect paths being used to call on the php-cli.exe. Basically I was trying to fire up the php-cli.exe from within the php folder. I SHOULD have called it up from the folder in which the runcronjobs.php file resided.

Given that my site files are in c:\ezpublish\ezpublish and my php files are in c:\ezpublish\php, I was originally typing into the command line the following:
<i>C:\eZpublish\php\php-cli.exe C:\ eZpublish\ eZpublish\runcronjobs.php</i>

What I <b>should</b> have done is first navigated to the root of the site, ie:
<i>C:\ eZpubl~1\ eZpubl~1</i>

Then to that line I should have added:
<i>C:\eZpublish\php\php-cli.exe runcronjobs.php</i>

The full line would look something like this:
<i>C:\EZPUBL~1\EZPUBL~1>c:\ezpubl~1\php\php-cli.exe runcronjobs.php</i>

Concluding, I have now set the php-cli.exe to run in windows scheduler, and amended the appropriate paths. All is well now and I am a happy man :)

You must be logged in to post messages in this topic!

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