2013-01-08 71 views
1

everyone.I試着用這個命令:wget -c -i file。通常,一些包可能長時間沒有下載速度。所以我想跳過這些包,然後繼續下一步。
現在,問題是如何檢測下載速度是否爲指定時間爲零,如5分鐘。如何檢測wget的下載速度是否爲零從shell

回答

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.