Scanbd files
https://www.dropbox.com/sh/eu2mflwablkv8vm/AACgbgDwXF_i1n734Iar4wa6a?dl=0
scanbd.conf launches "scan.sh" which is in the same folder. (temporarily
comment out).
fujitsu.com launches "test.sh" - simply creates a file in the /tmp folder
informing it executed. i have tried since just the name and the full path.
same result.
Thank you for the assistance and please let me know if anything else is needed
or required.
On Tuesday, February 17, 2015 1:22 PM, Wilhelm Meier-2 [via SANE]
<ml-node+s10972n19462...@n7.nabble.com> wrote:
I must admit that I have no idea what is going on - please post the full
scanbd.conf and all relevant included .conf-files.
And please test the script as saned user - not as the pi user.
Am 17.02.2015 um 17:38 schrieb ylafont:
> I am assuming access rights for the folder are all good, the script can
> be executed if i place it in the "scan action" of scanbd.conf
>
> folders access
> .
> pi@PiScanner /usr/local/etc $ ls -l
> total 4
> drwxr-sr-x 4 root staff 4096 Feb 16 15:53 scanbd
>
> But just in case i gave all rights to the folder and everything below.
>
> pi@PiScanner /usr/local/etc $ ls -l
> total 4
> drwxrwsrwx 4 root staff 4096 Feb 16 15:53 scanbd
>
>
> On Monday, February 16, 2015 11:56 AM, Wilhelm Meier-2 [via SANE]
> <[hidden email] </user/SendEmail.jtp?type=node&node=19460&i=0>> wrote:
>
>
> 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@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@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
> [hidden email]
>
> --
> sane-devel mailing list: [hidden email]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to [hidden email]
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://sane.10972.n7.nabble.com/Scandb-On-Paperload-fujitsu-conf-tp19449p19450.html
>
> To unsubscribe from Scandb - On Paperload - fujitsu.conf, click here.
> NAML
> <http://sane.10972.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Scandb - On Paperload - fujitsu.conf
> <http://sane.10972.n7.nabble.com/Scandb-On-Paperload-fujitsu-conf-tp19449p19460.html>
> Sent from the SANE - Dev mailing list archive
> <http://sane.10972.n7.nabble.com/SANE-Dev-f3.html> at Nabble.com.
>
>
--
Wilhelm
[hidden email]
--
sane-devel mailing list: [hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to [hidden email]
If you reply to this email, your message will be added to the discussion
below:
http://sane.10972.n7.nabble.com/Scandb-On-Paperload-fujitsu-conf-tp19449p19462.html
To unsubscribe from Scandb - On Paperload - fujitsu.conf, click here.
NAML
--
View this message in context:
http://sane.10972.n7.nabble.com/Scandb-On-Paperload-fujitsu-conf-tp19449p19464.html
Sent from the SANE - Dev mailing list archive at Nabble.com.
--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org