wget doesn't workForum: Other Help Topics Topic: wget doesn't work started by: Patrick Posted by Patrick on Sep. 17 2005,10:22
I use this line to download a picture:wget < http://xplanet.dyndns.org.nyud.net:8090/clouds/clouds_2048.jpg > ~/.xplanet/images Usually it works! (sometimes it doesn't which puzzles me...) Can anyone kick me in the right direction? When i do the above line in a term i get this respons: BusyBox v1.00 (2005.05.27-19:51+0000) multi-call binary Usage: wget [-c|--continue] [-q|--quiet] [-O|--output-document file] [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url wget retrieves files via HTTP or FTP Options: -c continue retrieval of aborted transfers -q quiet mode - do not print -P Set directory prefix to DIR -O save to filename ('-' for stdout) -Y use proxy ('on' or 'off') ? (when i try: "wget < http://xplanet.dyndns.org.nyud.net:8090/clouds/clouds_2048.jpg" > it does work!) Something else (that also is strange) If i try to "apt-get update" i get this: dsl@Patrick:~$ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied) E: Unable to lock the list direc sudo apt-get update does work though... (?) ps: just broke up the command, wget gets the file and then i added a line to cp it to ~\ works fine too Posted by mikshaw on Sep. 17 2005,15:10
wget in DSL is not a full wget...it is part of Busybox, with limited functionality. This isn't really related to your trouble, but just thought i'd be clear on that point just in case.The syntax of your command is not supported by wget, which is why you received the help message. The help being displayed is almost always a result of an incorrectly typed command, and is there to give you a clue about what was wrong with your command. Looking at the options given, I would say that the problems are: 1) You specified a target without telling wget that it is a target. So what you'd need to do is insert "-O" in front of the target. 2) The target is a directory, which is also not supported. You need to specify a filename. If you don't want to specify a particular filename, you can instead drop the target off the command and cd to that directory before running wget. This is essentially the same as downloading and then moving the file, as you have done, but i assume there is less cpu work involved. The apt-get command should not be run by anyone but root...this is standard linux behavior, to prevent inexperienced regular users from causing the destuction of the system. |