Created
July 4, 2012 04:17
-
-
Save grosser/3045258 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
Dir["tmp/*.txt"].each do |ip_file| | |
puts "-" * 50 | |
puts ip_file | |
ip = File.basename(ip_file).sub('.txt','') | |
puts "ip #{ip}" | |
puts "result:" | |
puts `cat #{ip_file} | ruby script/patch_dns #{ip}` | |
raise unless $?.success? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment