blob: 26a10f49558281983d914dca8afd8ec1de60f46b (
plain) (
tree)
|
|
#!/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
|