in reply to Re: Net::SSH::Perl hanging on creating objectin thread Net::SSH::Perl hanging on creating object
if ( ! system ("nc -z -w 2 myexample.com 22 2> /dev/null")) { print "ok"."\n" } [download]