Skip to content

Instantly share code, notes, and snippets.

@davidcelis
Created September 14, 2010 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcelis/579715 to your computer and use it in GitHub Desktop.
Save davidcelis/579715 to your computer and use it in GitHub Desktop.
d="`date +%y%m%d%H%M`"
myrealip="`wget www.whatismyip.com/automation/n09230945.asp -qO -`"
while read i; do
export http_proxy="http://$i" && \
retip="`wget www.whatismyip.com/automation/n09230945.asp -qO -`" && \
[ "$retip" != "$myrealip" ] && echo "$i" >> working$d &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment