This object is in archive! 

Cron: Which code to use for free version?

Archived EcoBurma 13 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.

This comment is in trash! Restore

Replies (4)

photo
13

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

This comment is in trash! Restore
photo
13

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.

This comment is in trash! Restore
photo
14

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.

This comment is in trash! Restore
photo
14

@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

This comment is in trash! Restore

Replies have been locked on this page!