I've been trying to set up a cron job to run a webpage
I've tried setting up a redirect in .htaccess to send the address 'http://www.mysite.co.uk/mycron' to it. And then use 'wget' in the command line.
wget -O - -q -t 1 http://www..mysite.co.uk/mycron
and got the error
'Your script returned the following:
Can't find 'wget'. Check that you have the correct location. '
and i've also tried setting up a php script and forwarding there the header at http://www.mysite.co.uk/cron/rsscontent.php using the command
/home/sites/mysite.co.uk/public_html/cron/rsscontent.php
but this method returns a report that my method to call this page up using 'Location:' is inappropriate.
After mailing Heart support the reply was that in regards to the calling a page direct it cannot be done from the same server as it could cause a loop. However after trying the command
wget -O - -q -t 1 http://www..mysite.co.uk/mycron
from another server ( still on heart ) theres still no success.
I've got it sorted now though - just signed up for an account at www.setcronjob.com where you can use them for free ( you have to redo them every month though or pay! ) and am now free to spend time doing other work ;) phew...
No comments:
Post a Comment