У меня есть большой файл, который я загружаю с помощью curl:
curl -s https://raw.github.... | bash
Если я приостановлю эту работу с помощью ctrl+z, а затем возобновлю ее, скажем fg %1, этот файл все равно будет загружен правильно?
ctrl+z
fg %1
Спасибо, Бен
wget фон && продолжить загрузку, возможно, поможет. Но это также зависит от функциональности веб-сервера. Некоторые из них не допускают загрузку с диапазона.
wget
$ 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.
Это будет продолжаться, пока сокет не истек!