wget: unable to resolve host address ...
- From: lbrt chx _ gemale
- Date: 07 Jul 2012 15:37:54 GMT
~
I am trying to download a few binary files using wget, but wget does not apparently digest well the declaration of the user agent
~
I have tried a number of things but I keep getting the same error message. I think it relates to argument variables. How can I fix that?
~
Also how could you know exactly how your environment has interpreted argument variables? To me the output of "echo" looks fine
~
#!/bin/bash
# user-agent
_UA="Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Iceweasel/6.0.2"
wget \
--no-verbose \
--continue \
--no-clobber \
--server-response \
--user-agent=${_UA} \
http://www.gutenberg.org/dirs/etext95/cavep11h.zip
~
and this is what I get:
~
$ sh wget04_test.sh
// __ _UA: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Iceweasel/6.0.2
wget: unable to resolve host address `(x11;'
wget: unable to resolve host address `linux'
wget: unable to resolve host address `i686;'
wget: unable to resolve host address `rv'
wget: unable to resolve host address `gecko'
wget: unable to resolve host address `firefox'
wget: unable to resolve host address `iceweasel'
HTTP/1.1 200 OK
Date: Sat, 07 Jul 2012 15:31:23 GMT
Server: Apache
Content-Length: 1429339
Content-Disposition: attachment; filename=cavep11h.zip
X-Rate-Limiter: php
Cache-Control: max-age=86400
Expires: Sun, 08 Jul 2012 15:31:23 GMT
X-Frame-Options: sameorigin
Keep-Alive: timeout=5, max=193
Connection: Keep-Alive
Content-Type: application/zip
2012-07-07 11:30:40 URL:http://www.gutenberg.org/dirs/etext95/cavep11h.zip [1429339/1429339] -> "cavep11h.zip" [1]
FINISHED --2012-07-07 11:30:40--
Downloaded: 1 files, 1.4M in 0s (2662351 GB/s)
~
thanks
lbrtchx
comp.unix.shell:wget: unable to resolve host address ...
.
- Follow-Ups:
- Re: wget: unable to resolve host address ...
- From: Lem Novantotto
- Re: wget: unable to resolve host address ...
- Prev by Date: Re: [sh] How can function find invoking line # ?
- Next by Date: Re: wget: unable to resolve host address ...
- Previous by thread: SSH/SCP question: Does it do "reget"?
- Next by thread: Re: wget: unable to resolve host address ...
- Index(es):
Relevant Pages
|