I'm working with curl
in Linux. I'm downloading a part of a file in ftp server (using the -r
option), but my connection is not good, it always interrupts. I want to write a script which resume download when I'm connected again.
I've used this command, but it's not working:
until curl -r 666-9999 -C - --retry 999 -o "path/to/file" "ftp:/path/to/remote/file"; do :; done