A
Athreya Vc
Hi All,
I am a newbie to Ruby programming.
I am trying a do a ping check on a server
irb(main):006:0> HOST='192.168.1.2'
=> "192.168.1.2'"
irb(main):007:0> Ping.pingecho(HOST)
=> false
where as I can ping the server for the host where I am running the irb.
ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem list --local
*** LOCAL GEMS ***
hoe (2.8.0)
net-ping (1.3.7)
net-ssh (2.0.23)
rake (0.8.7)
Am I missing something here?
Please help
Regards,
I am a newbie to Ruby programming.
I am trying a do a ping check on a server
irb(main):006:0> HOST='192.168.1.2'
=> "192.168.1.2'"
irb(main):007:0> Ping.pingecho(HOST)
=> false
where as I can ping the server for the host where I am running the irb.
ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem list --local
*** LOCAL GEMS ***
hoe (2.8.0)
net-ping (1.3.7)
net-ssh (2.0.23)
rake (0.8.7)
Am I missing something here?
Please help
Regards,