diff options
Diffstat (limited to 'fullcompMT.sh')
-rwxr-xr-x | fullcompMT.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fullcompMT.sh b/fullcompMT.sh index ece635f..66604a3 100755 --- a/fullcompMT.sh +++ b/fullcompMT.sh @@ -15,10 +15,10 @@ FIFONAME=fullcompMT_output_fifo.fifo [[ -e $FIFONAME ]] && rm $FIFONAME mkfifo fullcompMT_output_fifo.fifo -tail -F $FIFONAME & +tail -F "$FIFONAME" & TAILPID=$! -trap "rm $FIFONAME; kill $TAILPID; ./fullcompstats.py" EXIT +trap "kill $TAILPID; rm $FIFONAME; ./fullcompstats.py" EXIT DATE_FMT="%Y-%m-%d %H:%M:%S" |