PDA

View Full Version : wget help please!


LJackson
11-25-2009, 09:12 PM
Hi All,

i downloaded wget.exe from
http://www.filewatcher.com/m/wget.exe.324608.0.0.html

and i copied the exe to the windows directory and double clicked it and the black command window flashed up for a second and that was it, i asume it is installed???

however when i try and setup an task scheduler using the actions

action-> start program
program/script -> wget.exe
arguments-> -q -O nul http://www.mywebsite.com/db updates/dbupdater.php

but when i try and run it it doesnt run the url? but i cant figure out why?

please help
thanks
Luke

tomws
11-25-2009, 10:09 PM
That's not an installer. It's a program. Try it on the command line.

LJackson
11-25-2009, 10:20 PM
Hi mate,

sorry not sure how to do that :( not very familiar with command prompt...

it used to work before but i recently formatted my hdd and now when trying to get it working again it wont. and the old website i used before isnt there anymore :(

cheers
Luke

tomws
11-25-2009, 10:31 PM
Well, you open a command prompt, go to the directory where wget.exe is placed, and then type wget.exe followed by your arguments. Quite trivial.

With respect to the original question, check your event log. There may be an error there related to the failed task.

oracleguy
11-25-2009, 10:32 PM
If there is a space in the URL, you need to surround the entire URL in double quotes. And you can test it on the command line, go to start then run and type cmd to bring up a command window.

LJackson
11-25-2009, 10:42 PM
hi guys "think" ive solved it?

the problem seems to of been like oracleguy said problem with spaces

instead of this
action-> start program
program/script -> wget.exe
arguments-> -q -O nul http://www.mywebsite.com/db updates/dbupdater.php

i now have this
action-> start program
program/script -> wget.exe
arguments-> http://www.mywebsite.com/db%20updates/dbupdater.php

and it seems to be running smoothly so far :)

thanks for your help guys
Luke