linux – 如何恢复中断下载自动卷曲?

我正在使用 Linux中的卷曲.我正在ftp服务器下载文件的一部分(使用-r选项),但我的连接不好,它总是中断.我想编写一个脚本,当我再次连接时,它会恢复下载.

我已经使用这个命令,但它不工作:

until curl -r 666-9999 -C - --retry 999 -o "path/to/file" "ftp:/path/to/remote/file"; do :; done

解决方法

wget是为这个用例专门构建的.从手册页:
Wget has been designed for robustness over slow or unstable network connections;
if a download fails due to a network problem,it will keep retrying until the
whole file has been retrieved.  If the server supports regetting,it will
instruct the server to continue the download from where it left off.

wget几乎可以用于所有的Linux发行版 – 它可能已经安装在你的.只需使用wget下载文件,就会重新建立网络连接,直到文件完全传输.

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...