Archiving a bunch of old stuff

This commit is contained in:
Dan Buch
2015-06-22 13:15:42 -05:00
parent a6ec1d560e
commit bd1abd8734
395 changed files with 1 additions and 76 deletions

View File

@@ -0,0 +1,24 @@
require 'socket'
def main
@client = TCPSocket.new('localhost', 11211)
@client.puts ARGV.first
while line = @client.gets
puts line
case line.chomp
when 'END'
break
when 'ERROR'
return 1
end
end
return 0
ensure
@client.close if @client
end
if $0 == __FILE__
exit main
end