blob: 8cf38328d97a7f30884852c5503022b2098bee10 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# fq - tail -f the queue outputs, quitting when the job finishes
for f in ${NQDIR:-.}/,*; do
if ! nq -t $f; then
printf '==> %s\n' "$f"
tail -F $f & p=$!
nq -w $f
kill $p
fi
done
|