1

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.

  • You have to specify path to the file, like a url. – saji89 Jan 4 '13 at 4:54
  • What do you mean by like url? I tried using absolute path already if that's what you are saying. – 絢瀬絵里 Jan 4 '13 at 5:06
  • Can you post the path you tried, without specific ip or domian? – saji89 Jan 4 '13 at 6:49
  • ok, added to the question. – 絢瀬絵里 Jan 4 '13 at 6:54
1

Use php interpreter instead. So it should be

/usr/bin/php absolutePath/targetfile.php
0

My experience with wget is that you use it to download a file from a webpage directly. I had similar problems when my source webpage no longer existed. A normal wget command usually looks like this, I believe wget http://www.example.com/filename.whatever. This link might be helpful to you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.