Ubuntu – Wget Scheme Missing

cronwget

When I run Wget from terminal with command

wget targetfile.php

I got error "Scheme Missing". What does it is suppose to mean and how to fix it? I googled but all links I found is speaking of drupal wget. I've tried using absolute path but still not working and yield the same error. I'm trying to set up cronjob here. I follow this tutorial http://www.thesitewizard.com/general/set-cron-job.shtml where then it leads me to use wget.

tried

wget absolutePath/targetfile.php
usr/bin/wget absolutePath/targetfile.php

also tried using relativePath to targetfile.php by changing directory to absolutePath first.

Best Answer

Use php interpreter instead. So it should be

/usr/bin/php absolutePath/targetfile.php
Related Question