wget с ftp: запретить создание страницы по умолчанию

Другая опция может состоять в том, чтобы использовать socat:

# cf. http://unix.stackexchange.com/a/25377
socat EXEC:'hping --icmp-ts example.ca',pty,ctty STDIO | perl -ne 'if ...

3
25.05.2015, 23:32
1 ответ

Если я получил вам правильно, вам нужно избегать загрузки index.html. Затем вам нужно это (из WGET MAN страницы):

   -R rejlist --reject rejlist
       Specify comma-separated lists of file name suffixes or patterns to
       accept or reject. Note that if any of the wildcard characters, *,
       ?, [ or ], appear in an element of acclist or rejlist, it will be
       treated as a pattern, rather than a suffix.  In this case, you have
       to enclose the pattern into quotes to prevent your shell from
       expanding it, like in -A "*.mp3" or -A '*.mp3'.

Итак, вы должны добавить -r index.html, и он будет проинструктировать wget , чтобы исключить index.html из списка файлов скачивать.

1
27.01.2020, 21:31

Теги

Похожие вопросы