gpt4 book ai didi

linux - 如何从shell检测wget的下载速度为零

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:57:44 24 4
gpt4 key购买 nike

每个人。我尝试使用这个命令: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.

关于linux - 如何从shell检测wget的下载速度为零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14215863/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com