From b76f038d2b16be96514cb26e7def84ffdf12416f Mon Sep 17 00:00:00 2001 From: graehl Date: Mon, 28 Jun 2010 01:04:29 +0000 Subject: netstat -n is faster git-svn-id: https://ws10smt.googlecode.com/svn/trunk@32 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/parallelize.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vest') diff --git a/vest/parallelize.pl b/vest/parallelize.pl index e6bd8bf9..a47b7797 100755 --- a/vest/parallelize.pl +++ b/vest/parallelize.pl @@ -95,7 +95,7 @@ my $tryp=50; my $port = 50300+int(rand($randp)); my $endp=$port+$tryp; if ($verbose){ print STDERR "Testing port $port...";} -while (`netstat -l 2>/dev/null | grep -q $port`){ +while (`netstat -ln 2>/dev/null | grep -q $port`){ if ($verbose){ print STDERR "port is busy\n";} $port++; if ($port > $endp){ -- cgit v1.2.3