From: Panther Date: 2003-01-29T13:44:45+09:00 Subject: Re: ping with ruby Ok script is ok if I use Net::PingExternal.new. When ip address that I put is live script is ok, but when I put into script a ip address wrong I don't know how to set a timeout. I put timeout: pe = Net::PingExternal.new("192.168.1.2", timeout="3") but it don't go, ping go go and I don't know how I can stop it. How to set a timeout, so I have a string that say me (ip address is not valid or I can't connect to it!!). TCP ping unsuccessful: Connection refused - "connect(2)" UDP ping unsuccessful: Connection refused - "recvfrom(2)" TCP adn UDP say me that are not connect but PingExternal is ok. Isn't strange ??? Thank you