What replacements are available for pinging an ip address in Ruby? The stdlib "ping" library seems to be pretty limited in functionality. I'm not interested in rolling my own code here. Are there good gems available? Should I just suck it up and live with it?
(I'm coding in Ruby 1.8.6 on Linux)
net-ping
is worth a look. It allows for TCP pings (like the standard ruby ping
) but also UDP, HTTP, and ICMP pings. An ICMP ping requires root privileges but the others do not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With