Cronjob to run a PHP script via a URL

I’ve made a PHP script, and according to the docs, I should be able to just paste a URL to the script right into the script textarea. However, it doesn’t seem to be working.

The settings I used are:

Minute: 0
Hour: 8,10,12,14,16,18
Day: *
Month: *
Day of Week: *
Script: [Web URL of script]

The script doesn’t seem to have gone off at 6pm as I had requested. Do I need something else, to make it a CLI command? I had assumed from the wording of the docs that Interworx might be able to tell if it was a URL and act appropriately.

Thoughts? Tips?

CRON isn’t expecting a URL, it’s expecting a shell command.

For example: if I have a script called cron.php and it’s not executable, then I would enter php /path/to/script/cron.php in the script section.

Hope this helps.

Thanks for the response. You might want to clarify that in your documentation then.

In any case, I’ve gone ahead and used a curl command to do what I wanted. I used the -I flag to just return the header as opposed to the full page.

curl -I “http://www.domain.come/path/to/script.php

Hey purefusion,

Could you be more specific which documentation is unclear? We would like to fix this to prevent future confusion!

Thanks for the heads up purefusion, we’ll get that corrected!