Created
September 1, 2013 18:14
-
-
Save cenrak/6406224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
LIST=`cat ips.list` | |
for ip in $LIST | |
do | |
scp blocked_ips.list $ip:/tmp | |
ssh $ip "bash update-blocked-ips; rm -f /tmp/blocked_ips.list" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment