blob: 64c1e2436eca0c1872bb7090838d0e2c9a76854c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
printer="/dev/labelprinter"
queuedir=queue
print_queue(){
for job in $(ls -1 "$queuedir/new"); do
./trigger.sh "$printer" "$queuedir"
done
}
print_queue
while inotifywait --quiet --timeout 30 "$queuedir/new"; do
print_queue
done
|