cancel
Showing results for 
Search instead for 
Did you mean: 

cron not working

N/A

cron not working

I need cron to call a webpage every 6 minutes, I used to us the following command, but its not working anymore, and F9 cant be bothered to help

*/6 * * * * lynx --dump http://ccgi.strathtay.force9.co.uk/scheduler.php?swordfish=smib99 > /dev/null

any ideas would be a help.
2 REPLIES
N/A

cron not working

I don't think that you can make sockets to go out of the servers anymore.

Try:
*/6 * * * *php /files/home2/strathray/scheduler.php

What I suggest is that since you can't pass POST variables, you look in the php file, do a search for swordfish, and then add some logic which says:
if swordfish == "" (or perhaps null??) then
swordfish = smib99
fi
N/A

cron not working

Thanks I will give that a try and let you know if it works