The time now is Tue 21 May 2013, 19:14
All times are UTC - 4 |
| Author |
Message |
01micko

Joined: 11 Oct 2008 Posts: 7018 Location: qld
|
Posted: Sat 24 Apr 2010, 00:21 Post subject:
wget failing in script [solved] Subject description: only for some |
|
Hi Any wget gurus out there?
I have written a script which grabs pets for Lucid Puppy. It mostly works but forum member aarf has reported it fails grabbing a file from puppylinux.asia, Caneri's site. Aarf has tried a way suggested by Eric but that failed too. Perplexing.
Here is the discussion http://www.murga-linux.com/puppy/viewtopic.php?p=412560#412560 and for several posts on the next 2 pages.
Note the weird IP that aarf is getting from puppylinux.asia, nothing like the one I get. Works fine for me.
Little help?
Thanks
_________________ keep the faith .. 
Last edited by 01micko on Mon 26 Apr 2010, 02:48; edited 1 time in total
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sat 24 Apr 2010, 01:04 Post subject:
|
|
there may be a difference between busybox wget
http://www.busybox.net/downloads/BusyBox.html
and the full version
Not sure which is being used?
Either modify existing to busybox wget
or install full version
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3012 Location: Oregon
|
Posted: Sun 25 Apr 2010, 12:10 Post subject:
|
|
It might not be a script problem, but an internet problem.
As to what I am trying to say, let me give you an example.
I try to access an internet site from a link in my browser.
I see a message of "looking up blah blah" with blah blah being the site.
Half the time anymore, I then get a page of site not found with a try again message box.
Since wget does not return that type of error messages that could be the problem in itself.
My internet connection comes and goes and I am NOT talking about it being a Puppy problem.
It is a service provider problem with them not wanting to make sure the customer has a consistently stable line connection.
I have my DSL modem where I can see it and I can watch the connection degrade, disappear, and return.
I have had download speeds of 20kps when I am paying for a 1.5mbs line.
I also have a temporary phone line, replacing a supposedly bad buried one that is laying on top of the ground that Quest was supposed to bury and they have not now in over 6 months.
My download speeds go from nonexistent to 20kps to 1600kps and that stinks.
I can be logged on to the forum, go to post a messsage and am told I am not logged in even though I had just logged in.
So those of you with good internet connections and providers be thankful.
|
|
Back to top
|
|
 |
Caneri
Joined: 04 Sep 2007 Posts: 1565 Location: Canada
|
Posted: Sun 25 Apr 2010, 14:04 Post subject:
|
|
@aarf,
I googled ip 1.0.0.0 and found a problem with ipv6 with this solution
| Quote: | Connecting 1.0.0.0
Connecting 1.0.0.0 can be solved in two ways.
First GO to Network settings and remove IPv6 protocol and you can start surfing.
Secondly for MOZILLA Type in address bar as about:config
and find network.dns.disableIPv6 set the value to TRUE by double click..
This has at least worked for me. HOpe it works for you also |
The link is http://www.dslreports.com/forum/remark,14757298
There are also mentions of the 1.0.0.0. being assigned to the Asian networks.
Wget works here....hth EDIT: I added a wget howto in html format.
Eric
@Micko....I use the -np (no parent) and --cut-dirs="X" switches most of the time...it may be able to replace "root" in your lines but I'm not great with wget and fall back on what works for me. Thombh knew wget well but your usage may need your setup...not sure.
| Description |
|

Download |
| Filename |
wget.tar.gz |
| Filesize |
67.12 KB |
| Downloaded |
225 Time(s) |
_________________ Be not afraid to grow slowly, only be afraid of standing still.
Chinese Proverb
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7018 Location: qld
|
Posted: Sun 25 Apr 2010, 20:15 Post subject:
|
|
Eric
Thanks for that.
So it looks like an IP6 issue. I added -4 (explained in the manual, ) and tried a few small downloads and no problems. I wasn't getting a problem anyway, but it may well solve aarf's problem. I'll add it to the program, shouldn't break anything.
It's academic really, as .asia wont be used in the final of lupu, everything official will be available from ibiblio.
8-bit, I'm hearing you there mate.. mostly my con is superfast, but some days it's as flakey as a bowl of cornflakes. One problem here in Australia is that one telco owns all the phonelines, we are at their mercy. Monopoly is not good.
Cheers
EDIT: Yep, the -4 option fixed it for aarf, thanks guys.
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|