Daniel Berger
8/11/2007 5:17:00 AM
On Aug 10, 8:42 am, Ruby Rubyruby <netwer...@yahoo.com> wrote:
> What would I have to do in order to be able to send an ARP Ping or a
> regular ICMP_ECHO_REQUEST in Ruby? Is it possible?
require 'net/ping'
include Net
icmp = Ping::ICMP.new('foo.com')
if icmp.ping?
# Successful
else
# Failed
end
gem install net-ping
Regards,
Dan