diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-28 01:04:29 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-28 01:04:29 +0000 |
commit | fb9441d871b8bb4f879fc73f1a173cfc0884262b (patch) | |
tree | 208b980c71af542989c576fa2313c6bbdb6af6c8 /vest | |
parent | f08f336a7780511025995e3fa2e6d921c7a5f334 (diff) |
netstat -n is faster
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@32 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rwxr-xr-x | vest/parallelize.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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){ |