PHP & Crontab - Execute a file at a certain time daily
Posted: Fri Oct 31, 2008 5:26 am
Has anyone ever used the Crontab on plesk version 7.5.4 to excecute a .php at set intervals?
I know this isnt quite a .php question, so I have also posted this question in the general topic area of this forum.
I am trying to execute a file every day at a certain time. I have a linux server and use the Crontab program on the plesk control panel. I have created my scheduled task, I have set the time and the command line looks like this:
lynx -dump http://www.mywebsite.com/repeat/repeat.php
I get the following error:
Looking up http://www.mywebsite.com
Making HTTP connection to http://www.mywebsite.com
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://www.mywebsite.com/repeat/repeat.php
Any responses will be much appreciated.
Thanks
Mark
I know this isnt quite a .php question, so I have also posted this question in the general topic area of this forum.
I am trying to execute a file every day at a certain time. I have a linux server and use the Crontab program on the plesk control panel. I have created my scheduled task, I have set the time and the command line looks like this:
lynx -dump http://www.mywebsite.com/repeat/repeat.php
I get the following error:
Looking up http://www.mywebsite.com
Making HTTP connection to http://www.mywebsite.com
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://www.mywebsite.com/repeat/repeat.php
Any responses will be much appreciated.
Thanks
Mark