Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- for ping in $ip
- tcp = Net::HTTP.get_response(URI.parse(ping))
- puts "#{tcp.code} #{ping}"
- end
- rescue Errno::ECONNREFUSED
- next
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement