support attribute cleanup for nice single value column
[gnt-info] / gnt-running.sh
1 #!/bin/sh -e
2 while true ; do
3   JOBID=`gnt-job list --no-headers --running | tee /dev/stderr | grep -v GROUP_VERIFY_DISKS | awk '{ print $1; exit }'`
4   if [ -n "$JOBID" ]
5   then
6         gnt-job watch $JOBID || true # don't exit on failed jobs
7   else
8         sleep 5
9   fi
10 done