2011-12-23 22 views
0

我有一個大的文件,我下載使用curl:暫停在bash一個curl命令是下載文件

curl -s https://raw.github.... | bash 

如果我暫停此作業ctrl+z,然後再恢復它說fg %1會該文件仍然正確下載?

感謝, 本

+0

你試過了嗎? – Michael 2011-12-23 01:10:00

+0

我試過了,它似乎恢復正常...但我不認爲下載將在當前連接上可能幾天完成...我想如果可以的話,我會暫停並在恢復連接時恢復。 .. – Globalz 2011-12-23 01:19:02

+0

我還沒有看到管道捲曲成bash之前。這是做什麼的,或者你可以指向我的文檔?謝謝。 – shellter 2011-12-23 03:12:28

回答

0

只要插座沒有超時!

1

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. 
+0

感謝您指出wget I將來肯定會使用它...我覺得我已經下載了太多的重新啓動我的下載與不同的命令,但... – Globalz 2011-12-23 01:42:19