A simple Ruby interface to the 'ping' command
* Ruby 1.8.0 or later
* The win32/open3 package is required for Win32 systems when using the
ruby test.rb (optional)
gem install net-ping-<version>.gem
Please read the documentation. Especially pay attention to the docs
pertaining to ECONNREFUSED with regards to TCP pings.
Also note the documentation regarding down hosts.
How to require net-ping
You can do either this:
In which case you will get Net::Ping and all of its subclasses. Or,
you can load individual subclasses like this:
The former has the advantage of being easier to remember and all inclusive,
not to mention backwards compatible. The latter has the advantage of
reducing your memory footprint.