cancel
Showing results for 
Search instead for 
Did you mean: 

Timed task on CGI server

Kiwi2
Grafter
Posts: 42
Thanks: 5
Fixes: 2
Registered: ‎01-11-2015

Timed task on CGI server

I'm wanting to run some code (preferably PHP) on an hourly basis in my CGI webspace. I can't see any simple way of doing this - could you point me in the right direction?
Thanks
2 REPLIES 2
spraxyt
Superuser
Superuser
Posts: 10,063
Thanks: 1,370
Fixes: 75
Registered: ‎06-04-2007

Re: Timed task on CGI server

Unfortunately we don't have access to cron to run such jobs. It might be possible to use an external cron service to trigger them remotely, though I haven't tried that. One problem could be that PHP command line would be the means to run the job, but only the CGI module is available to us.
If an approximation to an hour is acceptable, and you have a website with sufficiently frequent visitors one possibility is to use something like phpJobScheduler to start the required task. If you use WordPress, using a WP-Cron hook (plugin) might be an option. Again I've not tried either of these.
David
David
Kiwi2
Grafter
Posts: 42
Thanks: 5
Fixes: 2
Registered: ‎01-11-2015

Re: Timed task on CGI server

Hi David.
I thought that might be the case  Sad
I'll have a look at other options, like phpJobScheduler,. Thanks for your comments.
Kiwi