projects
/
gnt-info
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
original code has problems: dies if no running jobs at the moment (gnt-job watch...
[gnt-info]
/
gnt-running.sh
1
#!/bin/sh -e
2
while true ; do
3
JOBID=`gnt-job list --no-headers --running | tee /dev/stderr | awk '{ print $1; exit }'`
4
if [ -n "$JOBID" ]
5
then
6
gnt-job watch $JOBID
7
else
8
sleep 5
9
fi
10
done