Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save metafeather/202982 to your computer and use it in GitHub Desktop.
Save metafeather/202982 to your computer and use it in GitHub Desktop.
# From Entropy.ch:
# Here’s a little terminal command I use to repeatedly attempt to download a file. This is useful if the transfer aborts frequently or if the server is busy:
# The while/do/done loop keeps calling curl, with pauses of 10 seconds. curl will keep returning a failure exit code, which is what keeps the while loop going if inverted with the ! (logical not) operator. The -C - flag tells curl to continue at the last byte position.
while ! curl -C - -O 'http://download.parallels.com/GA/Parallels%20Desktop%203186%20Mac%20en.dmg';
do sleep 10;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment