summaryrefslogtreecommitdiffstats
path: root/printloop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'printloop.sh')
-rwxr-xr-xprintloop.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/printloop.sh b/printloop.sh
index 64c1e24..26a10f4 100755
--- a/printloop.sh
+++ b/printloop.sh
@@ -4,12 +4,11 @@ printer="/dev/labelprinter"
queuedir=queue
print_queue(){
- for job in $(ls -1 "$queuedir/new"); do
- ./trigger.sh "$printer" "$queuedir"
- done
+ ./trigger.sh "$printer" "$queuedir"
}
print_queue
-while inotifywait --quiet --timeout 30 "$queuedir/new"; do
+while true; do
+ inotifywait --quiet --timeout 30 "$queuedir/new"
print_queue
done