1

大家。我试着用这个命令:wget -c -i file。并且通常,某些包可能长时间下载速度为零。所以我想跳过这些包,然后继续 wget。
现在,问题是我如何检测下载速度是否在指定时间内为零,比如 5 分钟。

4

1 回答 1

3

来自 wget 手册

   --read-timeout=seconds
       Set the read (and write) timeout to seconds seconds.  The "time" of
       this timeout refers to idle time: if, at any point in the download,
       no data is received for more than the specified number of seconds,
       reading fails and the download is restarted.  This option does not
       directly affect the duration of the entire download.

       Of course, the remote server may choose to terminate the connection
       sooner than this option requires.  The default read timeout is 900
       seconds.
于 2013-01-08T13:21:22.127 回答