[英]Suspending a curl command in bash that is downloading a file
我有一个正在使用curl下载的大文件:
curl -s https://raw.github.... | bash
如果我使用ctrl+z
暂停了此作业,然后再次说fg %1
该文件,那么该文件是否仍会正确下载?
谢谢,本
wget
background && continue下载也许有帮助。
但这也取决于Web服务器的功能。 其中一些不允许范围下载。
$ wget -b -c http://www.website.com/download/hello.txt
-b
--background
Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log.
-c
--continue
Continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by
another program.
只要套接字没有超时就可以!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.