blob: 9740048db83016c1d9fc0004897596530ce6892d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
printer="$1"
queue_dir="$2"
printed_dir=$queue_dir/printed/
mkdir -p $printed_dir
for file in $(ls $queue_dir/new/* 2>/dev/null); do
echo printing $file
./ql570/ql570 $printer $file
status=$?
if [ $status -ne 0 ] ; then
exit $status
fi
mv $file $printed_dir
done
exit 0
|