[sane-devel] Scandb - On Paperload - fujitsu.conf

Wilhelm wilhelm.meier at fh-kl.de
Mon Feb 16 16:56:59 UTC 2015


Am 16.02.2015 um 17:43 schrieb ylafont:
> I have been trying to have a "Paperload" action start without success. 
> 
> scanbd gives me on error stating "No such file or directory". The file is
> there. 

Please check the access rights of the user running scanbd, also to the
directory.

> 
> 
> Scanbd Log ---
> 
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: checking option
> page-loaded number 77 (2) for device fujitsu:fi-4220C2dj:100742: value: 1
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: value trigger:
> numerical
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: trigger action for
> page-loaded for device fujitsu:fi-4220C2dj:100742 with script
> /usr/local/etc/scanbd/test.sh
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd:
> get_sane_option_value
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: Value of mode as
> string (len 7, hash -621353420): Lineart
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env:
> SCANBD_FUNCTION_MODE=Lineart
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd:
> get_sane_option_value
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env:
> SCANBD_FUNCTION=2
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env:
> PATH=/sbin:/usr/sbin:/bin:/usr/bin
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env: PWD=/
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: No USER, setting
> env: USER=saned
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env:
> HOME=/
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env:
> SCANBD_DEVICE=fujitsu:fi-4220C2dj:100742
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: setting env:
> SCANBD_ACTION=paperload
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> fujitsu:fi-4220C2dj:100742 to signal scan_begin
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: now sending signal
> scan_begin
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> SCANBD_FUNCTION_MODE=Lineart to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> SCANBD_FUNCTION=2 to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> PATH=/sbin:/usr/sbin:/bin:/usr/bin to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> PWD=/ to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> USER=saned to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> HOME=/ to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> SCANBD_DEVICE=fujitsu:fi-4220C2dj:100742 to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> SCANBD_ACTION=paperload to signal trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: now sending signal
> trigger
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: now flushing the
> dbus
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: unref the signal
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: using absolute
> script path: /usr/local/etc/scanbd/test.sh
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: waiting for child:
> /usr/local/etc/scanbd/test.sh
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: exec for
> /usr/local/etc/scanbd/test.sh
> Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: execlp: No such
> file or directory
> *Feb 16 16:34:36 PiScanner scanbd: /usr/local/sbin/scanbd: child
> /usr/local/etc/scanbd/test.sh exited with status: 1*
> Feb 16 16:34:37 PiScanner scanbd: /usr/local/sbin/scanbd: Iteration on dbus
> call
> Feb 16 16:34:37 PiScanner scanbd: /usr/local/sbin/scanbd: append string
> fujitsu:fi-4220C2dj:100742 to signal scan_end
> Feb 16 16:34:37 PiScanner scanbd: /usr/local/sbin/scanbd: now sending signal
> scan_end
> Feb 16 16:34:37 PiScanner scanbd: /usr/local/sbin/scanbd: reopen device
> fujitsu:fi-4220C2dj:100742
> Feb 16 16:34:37 PiScanner scanbd: /usr/local/sbin/scanbd: got the value
> already -> copy
> Feb 16 16:34:37 PiScanner scanbd: /usr/local/sbin/scanbd: copy the value of
> option 77
> 
> 
> File listing -
> 
> pi at PiScanner /usr/local/etc/scanbd $ ls -l
> total 72
> -rwxr--r-- 1 root staff 1776 Feb  4 00:10 action.script
> -rwxr--r-- 1 root staff 2415 Nov  5 13:27 adfscan.sh
> -rwxr--r-- 1 root staff 1115 Feb  4 00:10 example.script
> -rwxr--r-- 1 root staff  949 Feb  4 00:10 insert.script
> -rwxr-xr-x 1 root staff 1643 Feb 10 18:14 nextfile.sh
> -rwxr-xr-x 1 root staff 2686 Feb 14 05:27 nextscan.sh
> -rwxr-xr-x 1 root staff 2346 Feb 15 17:14 premove.sh
> drwxr-sr-x 3 root staff 4096 Feb  4 03:59 sane.d
> -rwxr-xr-x 1 root staff 4502 Feb 15 17:19 scan2.sh
> -rwxr--r-- 1 root staff 1207 Feb  4 00:10 scanadf.script
> -rwxr--r-- 1 root staff 8805 Feb 16 15:45 scanbd.conf
> drwxr-sr-x 2 root staff 4096 Feb  4 03:59 scanner.d
> -rwxrwxrwx 1 root staff 2491 Feb 15 21:06 scan.sh
> -rwxr-xr-x 1 root staff 1195 Feb  4 00:10 test.script.org
> -rwxrwxrwx 1 root staff 2009 Feb 16 16:12 test.sh
> pi at PiScanner /usr/local/etc/scanbd $
> 
> 
> 
> paperload section - Fujitsu.conf ---
> 
>         action paperload {
>                 filter = "^page-loaded.*"
>                 desc   = "page loaded"
>                 numerical-trigger {
>                    from-value = 0
>                     to-value   = 1
>                 }
>                 # script must be an relative path starting from scriptdir
> (see above), 
>                 # or an absolute pathname. 
>                 # It must contain the path to the action script without
> arguments
>                 # Absolute path example: script = "/some/path/foo.script 
>                 #script = ""
> 		script = "/usr/local/etc/scanbd/test.sh"
> 		
>         }
> 
> 
> 
> 
> --
> View this message in context: http://sane.10972.n7.nabble.com/Scandb-On-Paperload-fujitsu-conf-tp19449.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