From 2594e69ecb4bc031e5e69b728cb485e44d3e4d67 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 22 Dec 2016 22:49:11 +0100 Subject: [PATCH] re-run watcher if there are more running jobs --- gnt-running.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnt-running.sh b/gnt-running.sh index 2d70ccf..f65b3d9 100755 --- a/gnt-running.sh +++ b/gnt-running.sh @@ -1,2 +1,4 @@ #!/bin/sh -xe -gnt-job list --no-headers --running | awk '{ print $1 }' | xargs gnt-job watch +while true ; do +gnt-job list --no-headers --running | tee /dev/stderr | awk '{ print $1 }' | xargs gnt-job watch +done -- 2.20.1