summaryrefslogtreecommitdiff
path: root/vest/dist-vest.pl
diff options
context:
space:
mode:
authorJonathan Clark <jon.h.clark@gmail.com>2011-03-11 10:22:31 -0500
committerJonathan Clark <jon.h.clark@gmail.com>2011-03-11 10:22:31 -0500
commit6026994f4d3b9e3e6a04b1205415a4d03fb83b63 (patch)
tree02037c30d88b312602ed36da53d9d16f5b7d3a6e /vest/dist-vest.pl
parent8964651a44b1cf07c0e34a36b25dbc68ece97106 (diff)
just use grep and dont check return code
Diffstat (limited to 'vest/dist-vest.pl')
-rwxr-xr-xvest/dist-vest.pl2
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";