[sane-devel] portable sheet fed scanner listening 24/7?
Mark Van den Borre
mark+sane at markvdb.be
Mon Jul 5 19:25:17 UTC 2010
Hi list,
I wonder if I can have my portable sheet fed scanner permanently listening for
a page to be fed, then auto start scanning it when it senses the
presence of a page. (My scanner is a Xerox Travel Scanner 100, usb
0x04a7:0x04ac , Genesys GL841 chipset).
I've been looking into scanimage --page-loaded , but that doesn't seem
to be implemented for the genesys backend.
I could keep on spawning new scanimage processes every time the
previous one successfully exits after scanning or dies with exit
status 9 of "scanimage: sane_start: Error during device I/O" after not
getting any sheet fed. I just worry that this might kill my
lamp/scanner within weeks or months. Can I safely ignore that risk?
while true; do
echo "Spawning a scanimage process."
scanimage --format=tiff > $(date +%Y%m%d%H%M%S).tif
done
This does the trick, but it feels ucky...
Any hints or help appreciated!
Mark Van den Borre
happy sane user
--
Mark Van den Borre
Noormannenstraat 113
3000 Leuven, België
+32 486 961726
More information about the sane-devel
mailing list