This object is in archive! 
Upvote 1

Cron: Which code to use for free version?

Archived EcoBurma 11 years ago

I need to set up cron for the free version, according to:

  1. */5 * * * * /usr/bin/curl -s "/fullpath/tasks/frequently/code/G6S1" > /dev/null
  2. 1 * * * * /usr/bin/curl -s "/fullpath/tasks/hourly/code/G6S1" > /dev/null
  3. 0 04 * * * /usr/bin/curl -s "/fullpath/tasks/daily/code/G6S1" > /dev/null


Which code do I use for this case instead of G6S1?


(I tried calling /fullpath/tasks/frequently.php from a php script, but there is no output and the job does not execute.)

Best Answer
photo

The issue is fixed. Please redownload Free 2.0.1 package. Now cron works fine.

Just take the code from Scheduled Jobs and launch it. You should have curl enabled on server.

Replies (4)

photo
1

PS: Managed to enable error reporting, output is:

Notice: Trying to get property of non-object in /.../library/Useresponse.php on line 172

Notice: Trying to get property of non-object in /.../library/Useresponse.php on line 230

Fatal error: Class 'System_Model_User' not found in /.../tasks/init.php on line 50

photo
1

The issue is fixed. Please redownload Free 2.0.1 package. Now cron works fine.

Just take the code from Scheduled Jobs and launch it. You should have curl enabled on server.

photo
1

Frequently and hourly work fine now, Events Statistics show the last time of execution.

For daily I get the error message:


Unable to Connect to tcp://submissions.ask.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known


Events Statistics show daily jobs as never executed.

photo
1

@EcoBurma,

We couldn't reproduce that bug and if you have CURL installed your daily jobs will start automatically.

Also the reason you don't have it working is that allow_url_fopen is set to 0 in your php.ini, but it should be 1

Replies have been locked on this page!