Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何检测wget';从shell下载的速度为零_Linux_Bash_Wget - Fatal编程技术网

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.