FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Help with automated tasks (cron)

 


Dougie1
Well I would like a script to be loaded every couple of minutes. I have tried ignoring user abort and sleeping but this does not work as it seems to stop when the site goes down.

Is there any sites which can visit the page every few minutes? Or is there another way to do this? Thanks.
Stubru Freak
Dougie1 wrote:
Well I would like a script to be loaded every couple of minutes. I have tried ignoring user abort and sleeping but this does not work as it seems to stop when the site goes down.

Is there any sites which can visit the page every few minutes? Or is there another way to do this? Thanks.


If you're on Frihost server 2, do this:
- Go to your Control Panel, log in, click Cronjobs.
- Fill in when you want to run the script. For command, fill in the following:
Code:
/usr/local/bin/php -f "/home/YOURUSERNAME/PATH/TO/SCRIPT.php"
Dougie1
Unfortunately the host I am using does not have direct admin or cPanel, it has Layered Panel.
Stubru Freak
Dougie1 wrote:
Unfortunately the host I am using does not have direct admin or cPanel, it has Layered Panel.


Does it have any other way to set cronjobs?
If not, this depends a lot on what it does support. Does it support shell access for example?
Dougie1
Thanks very much for the help. I have just created a script which uses cURL to load the page which I want loaded from the other server on my frihost server and am loading it with the cron tasks. Thanks Very Happy
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.