Skip to content

Instantly share code, notes, and snippets.

@trukhinyuri
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trukhinyuri/10942254 to your computer and use it in GitHub Desktop.
Save trukhinyuri/10942254 to your computer and use it in GitHub Desktop.
#!/bin/bash
url=$1
cookie=$2
while ! `wget -c -t 0 --load-cookies=$cookie $url -O $fileName --no-check-certificate`
do
sleep 300
echo `date` " try to download..."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment