Skip to content

Instantly share code, notes, and snippets.

@cenrak
Created September 1, 2013 18:14
Show Gist options
  • Save cenrak/6406224 to your computer and use it in GitHub Desktop.
Save cenrak/6406224 to your computer and use it in GitHub Desktop.
#/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