blob: 26a10f49558281983d914dca8afd8ec1de60f46b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|