blob: 2ba071b71e143e3faf4e415dddab25c8f5bcd123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
NOW=$( TZ=UTC date -Ins | tr T . | tr -d : | sed -E 's/(..),(...).*/\1.\2/' )
if [ $# = 0 ]
then
ACTUAL_BATCH=
fi
if $ACTUAL_BATCH
then
format=scan_${NOW}_%.3d.png
else
format=scan_${NOW}.png
fi
scanimage --progress --format=png --batch="$format"
|