summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-06-28 01:06:38 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-06-28 01:06:38 +0000
commit974f0c1a06228f90e8ca099c74684fedf513df00 (patch)
tree60951a3c9af16d61fe3c1285f3a06175e05d697d
parentb76f038d2b16be96514cb26e7def84ffdf12416f (diff)
grep -q would need to check status
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@33 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xvest/parallelize.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vest/parallelize.pl b/vest/parallelize.pl
index a47b7797..7a4a2133 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 -ln 2>/dev/null | grep -q $port`){
+while (`netstat -ln 2>/dev/null | grep $port`){
if ($verbose){ print STDERR "port is busy\n";}
$port++;
if ($port > $endp){