wget not working in cron

Please make sure that:

1. Cron is running (/etc/init.d/crond restart) – a bit obvious but worth a check

2. You specify full path to wget (like /usr/bin/wget)

For testing purposes you may paste this line to your crontab to make sure it’s working:

[code]
* * * * * /usr/bin/wget -O /tmp/index.php pingtool.org
[/code]
This will save a copy of index page from pingtool.org to /tmp/index.php

Leave a Reply

Your email address will not be published. Required fields are marked *