Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 15455  / 2 Years ago, sun, july 24, 2022, 11:54:49

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.


More From » cron

 Answers
4

Use php interpreter instead. So it should be



/usr/bin/php absolutePath/targetfile.php

[#33373] Tuesday, July 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;