From: Sandor Szuecs Date: 2010-09-17T00:10:55+09:00 Subject: Re: Net::PingExternal gives an errror On Sep 16, 2010, at 4:22 PM, Younes Baghor wrote: > Hello there, > > I'm having a problem with a tutorial to ping whatever. > I have snowleopard and both ruby's both give the same error: > > uninitialized constant Net::PingExternal (NameError) > > here is the code i'm using: > > require 'rubygems' > require 'net/ping' > if Net::PingExternal.new('localhost').ping > puts 'Localhost OK' > else > puts 'Localhost NO respons' > end # gem i net-ping require 'rubygems' require 'net/ping' o = Net::Ping::TCP.new 'www.ccc.de', 80 o.ping? # => true All the best, Sandor Szücs --