From: Gordon Thiesfeld Date: 2008-04-17T05:56:50+09:00 Subject: Re: Check if remote server exists On Wed, Apr 16, 2008 at 3:18 PM, Michael Linfield wrote: > > Could I use the server name instead of the IP in the same way? > > Yea no problem there, however I will issue the warning of this: > > Wouldn't be hard for someone to slip a del -qf *.* in that system call > and wipe out your drive, at least thats what I think it is on windows. > Just be careful who you let around it :) > > If its just you using it, shouldn't have any problem at all. > > Regards, > > - Mac Another way is to check if the server is listening on a port an Exchange server would listen on, like IMAP4(143), or SMTP(25) >> require 'ping' => true >> Ping.pingecho('exchange_server',5,143) => true Hope that helps, Gordon