[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] unexpected behaviour of wget on some long links

From: Bykov Aleksey
Subject: Re: [Bug-wget] unexpected behaviour of wget on some long links
Date: Thu, 13 Jun 2013 18:22:32 +0300
User-agent: Opera Mail/12.14 (Win32)

Greetings, Yiwei Yang
Sorry for stupid question, but does You try to use qoutes to escape url?
wget -p -np -nc -nd --delete-after -t 1 -T 20 -P somefolder "<url>"
wget -p -np -nc -nd --delete-after -t 1 -T 20 -P somefolder '<url>'
Shell can interpret ampersand as command separator...

Best regars, Alex

    I wrote a c program and read a list of URLs and feed into wget one by
one with the following command:

   wget -p -np -nc -nd --delete-after -t 1 -T 20 -P somefolder <url>

However, with some long links, like:

it will show me finished the fetching but it will just block there until I
hit enter, but then the whole program will exit without proceeding to the
next link.

Another situation is I might get HTTP 404 error, for example, from:


or from

And -p will fetch from some other links and sometimes I get  HTTP400 or
HTTP500 errors(this situation increases if I add -H in the command),

So my question is:
Is there any restrictions on what kind of links could I use wget on? But if I use -p, it will try to fetch other links that I don't have control, so is
there way to not to fetch links that will get HTTP errors so that my
program won't crash?

Thank you very much!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]