Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: wget doesn't work, (from time to time)< Next Oldest | Next Newest >
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 17 2005,10:22 QUOTE

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


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 17 2005,15:10 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
1 replies since Sep. 17 2005,10:22 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: wget doesn't work

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code