Files
bin/queue
2012-12-16 18:46:30 +01:00

17 lines
216 B
Bash
Executable File

#!/bin/bash
qfile=/tmp/queue.commands
if [ "$1" = "-list" ]; then
cat $qfile
exit
fi
echo $* >> $qfile
lines=$(cat $qfile | wc -l)
if [ $lines -eq 1 ]; then
nohup /usr/local/bin/unqueue $qfile &
fi