diff options
author | Jonathan Clark <jon.h.clark@gmail.com> | 2011-03-11 10:22:31 -0500 |
---|---|---|
committer | Jonathan Clark <jon.h.clark@gmail.com> | 2011-03-11 10:22:31 -0500 |
commit | 92ca6e23b39043ad026c07a5aab71ffc750c1db2 (patch) | |
tree | 23feeaaa0787afc174fe466f3599023433e3bac1 /vest | |
parent | db200aeefcfad33e789a8790961ef5c0f66d8ba3 (diff) |
just use grep and dont check return code
Diffstat (limited to 'vest')
-rwxr-xr-x | vest/dist-vest.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index 6a5959dc..f95754dc 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -396,7 +396,7 @@ while (1){ print STDERR "Waiting for mappers to complete...\n"; while ($nmappers > 0) { sleep 5; - my @livejobs = grep(/$joblist/, split(/\n/, check_output("qstat | awk '{if($0 !~ \" C \"){print}}'"))); + my @livejobs = grep(/$joblist/, split(/\n/, unchecked_output("qstat | grep -v ' C '"))); $nmappers = scalar @livejobs; } print STDERR "All mappers complete.\n"; |