Thursday, 10 March 2011

Trying to set up a cron job on Heart internet.

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 '' to it. And then use 'wget' in the command line.

wget -O - -q -t 1

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 using the command


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

from another server ( still on heart ) theres still no success.

I've got it sorted now though - just signed up for an account at 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: