Linux 如何检测wget';从shell下载的速度为零
我试着使用这个命令:Linux 如何检测wget';从shell下载的速度为零,linux,bash,wget,Linux,Bash,Wget,我试着使用这个命令:wget-c-I文件。通常,一些软件包可能在很长一段时间内没有下载速度。因此,我想跳过这些包,然后继续下一步的wget。 现在,问题是我如何检测下载速度是否在指定时间内为零,比如5分钟 来自wget手册 --read-timeout=seconds Set the read (and write) timeout to seconds seconds. The "time" of this timeout refers to idle ti
wget-c-I文件
。通常,一些软件包可能在很长一段时间内没有下载速度。因此,我想跳过这些包,然后继续下一步的wget。现在,问题是我如何检测下载速度是否在指定时间内为零,比如5分钟 来自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.