summaryrefslogblamecommitdiffstats
path: root/printloop.sh
blob: 26a10f49558281983d914dca8afd8ec1de60f46b (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                           
                                           


           

                                                        

                   
#!/bin/sh

printer="/dev/labelprinter"
queuedir=queue

print_queue(){
	./trigger.sh "$printer" "$queuedir"
}

print_queue
while true; do
	inotifywait --quiet --timeout 30 "$queuedir/new"
	print_queue
done