wget failing in script [solved]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

wget failing in script [solved]

#1 Post by 01micko »

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/viewto ... 560#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
Last edited by 01micko on Mon 26 Apr 2010, 06:48, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

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 Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#3 Post by 8-bit »

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.

Caneri
Posts: 1513
Joined: Tue 04 Sep 2007, 13:23
Location: Canada

#4 Post by Caneri »

@aarf,
I googled ip 1.0.0.0 and found a problem with ipv6 with this solution
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.
Attachments
wget.tar.gz
(67.12 KiB) Downloaded 465 times
[color=darkred][i]Be not afraid to grow slowly, only be afraid of standing still.[/i]
Chinese Proverb[/color]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#5 Post by 01micko »

Eric

Thanks for that.

So it looks like an IP6 issue. I added -4 (explained in the manual, :wink: ) 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. :wink:

Cheers

EDIT: Yep, the -4 option fixed it for aarf, thanks guys.
Puppy Linux Blog - contact me for access

Post Reply