everyone.I我试图使用这个命令:wget -c -i file
。通常,某些软件包可能长时间没有下载速度。所以我想跳过这些包然后继续下一步。
现在,问题是如何在指定的时间内检测下载速度是否为零,例如5分钟。
答案 0 :(得分:3)
--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.