diff options
author | Jonathan Clark <jon.h.clark@gmail.com> | 2011-03-11 10:09:18 -0500 |
---|---|---|
committer | Jonathan Clark <jon.h.clark@gmail.com> | 2011-03-11 10:09:18 -0500 |
commit | 87f518c99d9365aa725ebc2de6618df4676145a8 (patch) | |
tree | 396740d83c4bce9d054b3abcf93b0cb8b48c0662 /vest | |
parent | 6bed114e3c5f7b3537ac6abed45b309ff23404d1 (diff) |
dont die when there are no running jobs
Diffstat (limited to 'vest')
-rwxr-xr-x | vest/dist-vest.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index c27af804..cfddf61c 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -1,4 +1,4 @@ -#!/usr/bin/env perl +#grep!/usr/bin/env perl use strict; my @ORIG_ARGV=@ARGV; use Cwd qw(getcwd); @@ -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 | grep -v ' C '"))); + my @livejobs = grep(/$joblist/, split(/\n/, check_output("qstat | awk '{if($0 !~ \" C \"){print}}'"))); $nmappers = scalar @livejobs; } print STDERR "All mappers complete.\n"; |