Persistent retrying resuming downloads with curl

Posted by Svish on Super User See other posts from Super User or by Svish
Published on 2010-05-18T12:37:26Z Indexed on 2010/05/18 12:41 UTC
Read the original article Hit count: 185

Filed under:
|
|
|
|

I'm on a mac and have a list of files I would like to download from an ftp server. The connection is a bit buggy so I want it to retry and resume if connection is dropped.

I know I can do this with wget, but unfortunately Mac OS X doesn't come with wget. I could install it, but to do that (unless I have missed something) I need to install XCode and MacPorts first, which I would like to avoid.

Curl is available though it seems, but I don't know how that works or how to use it really. If I have a list of files in a text file (one full path per line, like ftp://user:pass@server/dir/file1) how can I use curl to download all those files? And can I get curl to never give up? Like, retry infinitely and resume downloads where it left off and such?

© Super User or respective owner

Related posts about unix

Related posts about mac