2016-06-17 6 views
0

Я изучаю утилиту wget в Fedora 23. Во многих случаях использования wget я получаю те же ошибки. , например, один из команд, которые я тестировал это:idn_encode failed (3): «Незначительное/письмо/дефис во вводе»

wget ‐‐output-file=logfile.txt ‐‐recursive ‐‐spider http://www.howtogeek.com/ 

, но я получаю это:

idn_encode failed (3): ‘Non-digit/letter/hyphen in input’ 
--2016-06-17 16:40:09-- http://%E2%80%90%E2%80%90output-file=logfile.txt/ 
Resolving ‐‐output-file=logfile.txt (‐‐output-file=logfile.txt)... failed: No address associated with hostname. 
wget: unable to resolve host address ‘‐‐output-file=logfile.txt’ 
idn_encode failed (3): ‘Non-digit/letter/hyphen in input’ 
--2016-06-17 16:40:10-- http://%E2%80%90%E2%80%90output-file=logfile.txt/ 
Resolving ‐‐output-file=logfile.txt (‐‐output-file=logfile.txt)... failed: No address associated with hostname. 
wget: unable to resolve host address ‘‐‐output-file=logfile.txt’ 
--2016-06-17 16:40:11-- http://xn--recursive-u79da/ 
Resolving ‐‐recursive (xn--recursive-u79da)... failed: No address associated with hostname. 
wget: unable to resolve host address ‘xn--recursive-u79da’ 
--2016-06-17 16:40:17-- http://xn--recursive-u79da/ 
Resolving ‐‐recursive (xn--recursive-u79da)... failed: No address associated with hostname. 
wget: unable to resolve host address ‘xn--recursive-u79da’ 
--2016-06-17 16:40:18-- http://xn--spider-9f0ca/ 
Resolving ‐‐spider (xn--spider-9f0ca)... failed: No address associated with hostname. 
wget: unable to resolve host address ‘xn--spider-9f0ca’ 
--2016-06-17 16:40:18-- http://xn--spider-9f0ca/ 
Resolving ‐‐spider (xn--spider-9f0ca)... failed: No address associated with hostname. 
wget: unable to resolve host address ‘xn--spider-9f0ca’ 
--2016-06-17 16:40:29-- http://www.howtogeek.com/ 

ответ

1

В вашем wget ‐‐output-file=logfile.txt, два символа перед output-file не являются (ASCII) HYPHEN-МИНУС (- , U + 002D), но HYPHEN (, U + 2010). Вот почему парсер параметров wget не распознает его как параметр, но вместо этого пытается разрешить его как имя хоста.

--recursive и --spider есть та же проблема.

Удалить эти дефисы и перепечатать их с помощью - (минус) ключа. Это должно исправить это.

+1

Я не могу продвигать этот момент, но если бы я мог –