use the ping library to check servers that are online : ping « Network « Ruby






use the ping library to check servers that are online


require 'ping'

puts "Pong!" if Ping.pingecho('http://www.google.com/', 5)

 








Related examples in the same category

1.Checking Machine and Service Availability
2.Using net-ping
3.Use net-ping to connect to a specific port using TCP or UDP