簡體   English   中英

如何從shell中檢測到wget的下載速度為零

[英]how to detect the wget's download speed is zero from shell

everyone.I試圖使用這個命令: wget -c -i file 通常,某些軟件包可能長時間沒有下載速度。 所以我想跳過這些包然后繼續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.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM