2016-06-17 9 views
0

私はfedora 23でwgetユーティリティを学んでいます。たとえば、私がテストしたのいずれかのコマンドのための は次のとおりです。idn_encodeが失敗しました(3): '数字以外の文字/ハイフンが入力されました'

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

が、私はこれを取得:あなたのwget ‐‐output-file=logfile.txt

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

を、output-fileの前の2文字は、(ASCII)HYPHEN-MINUS(-ではありません、U + 002D)であるが、HYPHEN(、U + 2010)である。そのため、wgetのオプションパーサはオプションとして認識しませんが、代わりにホスト名として解決しようとします。

--recursiveおよび--spiderにも同じ問題があります。

これらのハイフンを削除し、-(マイナス)キーを使用して再入力してください。それはそれを修正する必要があります。

+1

私はこの瞬間をupvoteできませんが、もし私が –

関連する問題