From: "Peña, Botp" Date: 2008-04-19T12:10:46+09:00 Subject: Re: Check if remote server exists [mailto:list-bounce@example.com] On Behalf Of Jeff Miller # ip = params[:ex_name] # storage = [] # storage << system("ping #{ip}") # if storage == [true] # blah blah # end # # I don't need to determine right away if it is an exchange # server or not. I have also tried Gordon's response, which # works. I basically just need to check whether it's there or not. just in case you'll need it, you can telnet to it eg, here is one simple way (among other ways), require 'net/telnet' #=> true x = Net::Telnet::new("Host" => "MYMAIL", "Port" => 25, "telnetmode"=>false) #=> # puts x.gets 220 MYMAIL.mydomain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3 959 ready at Sat, 19 Apr 2008 11:04:57 +0800 #=> nil that is an exchange 2003 iianm kind regards -botp