diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-02 18:40:51 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-02 18:40:51 +0200 |
commit | 2cf28ae77c6db26063b1702d37996e48a0a5e4fb (patch) | |
tree | 0daaae9b452cff87f7444bcdc0c618dbe7df0d34 /fq | |
parent | ead617c8c376563ec46bd903fb52d47d251a61ce (diff) | |
download | nq-2cf28ae77c6db26063b1702d37996e48a0a5e4fb.tar.gz nq-2cf28ae77c6db26063b1702d37996e48a0a5e4fb.tar.xz nq-2cf28ae77c6db26063b1702d37996e48a0a5e4fb.zip |
add fq
Diffstat (limited to 'fq')
-rwxr-xr-x | fq | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fq b/fq new file mode 100755 index 0000000..8cf3832 --- /dev/null +++ b/fq @@ -0,0 +1,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 |