[sane-devel] scanbd Post Processing
ylafont
ylafont at yahoo.com
Tue Feb 10 03:30:13 UTC 2015
Forgive me if this not the correct section for this.
I wanted to start a bash script to process the completed scans. I created a
link to Scan.sh from test.script
test.script -> scan.sh
A section of scan.sh contains the following when scanning via the ADF
if [ $SCANBD_ACTION -eq "paperload" ] && [ $SCANBD_FUNCTION -eq 2 ]; then
logger -t "scanbd: $0" "************* Now Scanning on device $SCANBD_DEVICE
***************"
scanimage -d $SCANBD_DEVICE -y 279.4 -x 215.9 --batch --format=tiff --mode
Lineart --resolution 300 --source="ADF Duplex"
logger -t "scanbd: $0" "************* Scanning ended on device
$SCANBD_DEVICE ***************"
fi
logger -t "scanbd: $0" "End of $SCANBD_ACTION for device $SCANBD_DEVICE"
Removing blank pages and cleaning all others.
logger -t "scanbd: $0" "**** Starting Page Removal Process **"
*. ./premove.sh* <--------- Post processing script
After the scanner completes the scan the script is terminated and does not
allow processing to continue.
Feb 10 00:38:14 PiScanner scanbd: /usr/local/etc/scanbd/scan.sh: ****
Scanning ended on device fujitsu:fi-4220C2dj:100742 **
Feb 10 00:38:14 PiScanner scanbd: /usr/local/etc/scanbd/scan.sh: End of scan
for device fujitsu:fi-4220C2dj:100742
Feb 10 00:38:14 PiScanner scanbd: /usr/local/sbin/scanbd: child
/usr/local/etc/scanbd/scan.sh exited with status: 1
Feb 10 00:38:15 PiScanner scanbd: /usr/local/sbin/scanbd: append string
fujitsu:fi-4220C2dj:100742 to signal scan_end
Feb 10 00:38:15 PiScanner scanbd: /usr/local/sbin/scanbd: now sending signal
scan_end
Is there a method allowing the second script to continue and process the
pages scanned?
--
View this message in context: http://sane.10972.n7.nabble.com/scanbd-Post-Processing-tp19426.html
Sent from the SANE - Dev mailing list archive at Nabble.com.
More information about the sane-devel
mailing list