[sane-devel] scanbd Post Processing
Wilhelm
wilhelm.meier at fh-kl.de
Wed Feb 11 07:12:18 UTC 2015
Am 11.02.2015 um 03:19 schrieb ylafont:
> Yes,
>
> the last line of the script, calls a script to process the scans,
You are source-ing the premove.sh.
What happens if you start it by hand? But the problem then isn't related
to scanbd, seems to be bash related.
>
> The complete scan.sh. is as follows.
> ________________________________________________________________
> logger -t "scanbd: $0" "Begin of $SCANBD_ACTION for device $SCANBD_DEVICE"
>
> # printout all env-variables
> /usr/bin/printenv > /tmp/scanbd.env
>
> CurrentDir=$(pwd) #Script Starting Directory
> scandir="/home/pi/PiScans" #Scanning Directory
> tmpdir=Scan-$RANDOM #Script temporary Directory of processing.
>
> mkdir $scandir/$tmpdir
> cd $scandir/$tmpdir
>
> if [ $SCANBD_FUNCTION -eq 2 ]; then
> #if [ $SCANBD_ACTION -eq "paperload" ] && [ $SCANBD_FUNCTION -eq 2 ]; then
> logger -t "scanbd: $0" "************* Now Scanning on device $SCANBD_DEVICE
> ***************"
> #scanimage -d net:localhost:fujitsu:fi-4220C2dj:100742 -y 279.4 -x 215.9
> --batch --format=tiff --mode Lineart --resolution 300 --source="ADF Duplex"
> 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
>
> . ./premove.sh
>
> logger -t "scanbd: $0" "End of $SCANBD_ACTION for device $SCANBD_DEVICE"
> ___________________________________________________________________________
>
>
> I had also address the error - but the second script which is in the same
> location as scan.sh does not execute.
>
> Feb 11 02:19:18 PiScanner scanbd: /usr/local/etc/scanbd/scan.sh: Begin of
> scan for device fujitsu:fi-4220C2dj:100742
> Feb 11 02:19:18 PiScanner scanbd: /usr/local/etc/scanbd/scan.sh:
> ************* Now Scanning on device fujitsu:fi-4220C2dj:100742
> ***************
> Feb 11 02:19:19 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:20 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:21 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:22 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:23 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:24 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:25 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:26 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:27 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 11 02:19:27 PiScanner scanbd: /usr/local/etc/scanbd/scan.sh:
> ************* Scanning ended on device fujitsu:fi-4220C2dj:100742
> ***************
> Feb 11 02:19:27 PiScanner scanbd: /usr/local/etc/scanbd/scan.sh: This this
> End *********** of scan for device fujitsu:fi-4220C2dj:100742
> Feb 11 02:19:27 PiScanner scanbd: /usr/local/sbin/scanbd: child
> /usr/local/etc/scanbd/scan.sh exited with status: 0
> Feb 11 02:19:27 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> fujitsu:fi-4220C2dj:100742 to signal scan_end
>
>
>
>
>
> --
> View this message in context: http://sane.10972.n7.nabble.com/scanbd-Post-Processing-tp19426p19430.html
> Sent from the SANE - Dev mailing list archive at Nabble.com.
>
--
Wilhelm
w.meier at unix.net
More information about the sane-devel
mailing list