Mega Code Archive
Categories
/
Ruby
/
Network
Use the ping library to check servers that are online
require 'ping' puts "Pong!" if Ping.pingecho('http://www.google.com/', 5)