From: Bedo Sandor Date: 2009-12-25T18:28:43+09:00 Subject: Re: Low level TCP port openness check Albert Schlef wrote: > Check out nmap and netstat. This is what You're suggesting, am I right? def wait_for_tcp_port_to_open(host, port) loop do scan_result = `/usr/bin/nmap -n -sS '#{host}' -p '#{port}'` return if scan_result =~ /[\s\t]open[\s\t]/ sleep 1 end end Not a nice solution, but works... Any other idea? Maybe one in pure Ruby? s. -- Posted via http://www.ruby-forum.com/.