[sane-devel] Scanner Button Daemon [scanbd] 1.3: parse error in config file

2013-01-20 Thread Rolf Bensch
Hi Louis,

I'm running the stock 1.3 version.

The config files are the ones which have been installed with 'sudo make
install'.

The config and script files are in /usr/local/etc/scanbd/ and pixma.conf
is in the subfolder scanner.d/.

For testing I'm running this command: '/usr/local/bin/scanbd -df -c
/usr/local/etc/scanbd/scanbd.conf'.

Many thanks for your support,
Rolf



Am 19.01.2013 23:55, schrieb Louis Lagendijk:
> 
> On Sat, 2013-01-19 at 18:54 +0100, Rolf Bensch wrote:
>> Hi Wilhelm,
>>
>> Yesterday I started with scanbd and my CS9000F.
>>
>> I mentioned an error with scanbd.conf:
>>
>> $ /usr/local/bin/scanbd -df -c /usr/local/etc/scanbd/scanbd.conf
>> /usr/local/etc/scanbd/scanbd.conf:197: no such option 'include'
>> /usr/local/bin/scanbd: parse error in config file
>>
>> As a workaround I copied the contents of pixma.conf into scanbd.conf.
>>
>> It could be nice to use the 'include' function. Configuration will be
>> much easier to use prepared conf files. I'll provide my conf and script
>> files to the ml when everything is working.
>>
>> Cheers,
>> Rolf
> 
> hello Rolf
> include works only in between sections. It does work here with the
> default config. Could you please mail me the failing configuration so I
> can have a look at it? As Wilhelm already pointed out, I did most of the
> changes (and bugs :-) ) for the 1.3 release
> 
> Are you running the stock 1.3 version or from subversion?
> Kind regards, Louis 
> 
> 
> 
-- next part --
/*
 * $Id: scanbd.conf 157 2013-01-06 07:42:46Z wimalopaan $
 *
 *  scanbd - KMUX scanner button daemon
 *
 *  Copyright (C) 2008 - 2013  Wilhelm Meier (wilhelm.meier at fh-kl.de)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 */


# global settings
global {
# turn on debugging

# log to console
debug   = true 

# debug logging
# 1=error, 2=warn, 3=info, 4-7=debug
debug-level = 7

# drop priviliges to this user
#=
# Linux: 
# user= saned # root
# *BSD
# user= root
user= saned

# Group to be used
#=
# Linux (most distributions use the lp group to access scanners)
# group   = lp
# ArchLinux (ArchLinux uses the scanner group)
# group = scanner
#
# *BSD (no group lp here, use daemon instead)
# group   = daemon # root
#
group   = lp

# the saned executable for manager-mode
saned   = "/usr/sbin/saned"
saned_opt  = {} # string-list
saned_env  = { "SANE_CONFIG_DIR=/usr/local/etc/scanbd" } # list of 
environment vars for saned

# Scriptdir specifies where scanbs normally looks for scripts.
# The scriptdir option can be defined as: 
#   - a path relative to the configuations (/etc/scanbd) directory
#   - an abosolute path
# Examples:
# scriptdir = scripts 
# sets scriptdir to /etc/scripts.
# scriptdir = /some/path
# sets scriptdir to the specified absolute path
# Default scriptdir is /etc/scanbd, this is normally appropriate
# scriptdir = 

# scanbuttond_backends_dir sets the path where scanbd looks for the 
scanbuttond backends 
# It can be defined as relative path, starting from the scanbd config 
directory or
# as an absolute path
# Default is /scanbd/scanbutond/backends
# Example
# scanbuttond_backends_dir = 
"/usr/local/lib/scanbd/scanbuttond/backends"

# poll timeout in [ms]
# (for polling the devices)
timeout = 500 

pidfile = "/var/run/scanbd.pid"

# env-vars for the scripts
environment {
# pass the device label as below in this env-var
device = "SCANBD_DEVICE"
# pass the action label as below in this env-var
action = "SCANBD_ACTION"
}

# function definitions
# values of the options are simply passed via env-vars

function function_knob {
filter = "^message.*"
desc   = "The value of the function knob / wheel / selector"
env=

[sane-devel] Scanner Button Daemon [scanbd] 1.3: parse error in config file

2013-01-20 Thread Wilhelm
Am 19.01.2013 18:54, schrieb Rolf Bensch:
> Hi Wilhelm,
>
> Yesterday I started with scanbd and my CS9000F.
>
> I mentioned an error with scanbd.conf:
>
> $ /usr/local/bin/scanbd -df -c /usr/local/etc/scanbd/scanbd.conf
> /usr/local/etc/scanbd/scanbd.conf:197: no such option 'include'
> /usr/local/bin/scanbd: parse error in config file

please provide us with the config file(s).

>
> As a workaround I copied the contents of pixma.conf into scanbd.conf.
>
> It could be nice to use the 'include' function. Configuration will be
> much easier to use prepared conf files. I'll provide my conf and script
> files to the ml when everything is working.
>
> Cheers,
> Rolf
>
>
>
> Am 06.01.2013 09:11, schrieb Wilhelm:
>> Hi all,
>>
>> I like to announce the new version 1.3 of scanbd, the scanner button
>> daemon.
>>
>> This release is mostly a maintainers release as it restructures the
>> layout of the source repository and adds support for autotools /
>> configure. This makes compilation / integration much more simple. More
>> documentation and helpful integration files (like systemd-config or
>> startup for FreeBSD e.g.) for various platforms are added.
>>
>> I would like to clearly mention that all the hard work was done by
>> Louis Lagendijk (louis at fazant.net)! Many thanks for his efforts and his
>> patience!
>>
>> http://sourceforge.net/projects/scanbd/files/releases/scanbd-1.3.tar.gz/download
>>
>>
>> or
>>
>> svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/releases/1.3
>>
>> [
>> scanbd is a scanner button daemon. It polls the scanner buttons looking
>> for buttons pressed or function knob changes or other scanner events  as
>> paper inserts / removals and at the same time allows
>> also scan-applications to access the scanners. If buttons are pressed,
>> etc., various actions can be submitted (scan, copy, email, ...) via
>> action scripts. The function knob values are passed to the
>> action-scripts as well. Scan actions are also signaled via dbus. This
>> can be useful for foreign applications. Scans can also be triggered via
>> dbus from foreign applications.
>> On platforms which support signaling of dynamic device insertion /
>> removal (libudev, dbus, hal) scanbd supports this as well.
>> scanbd can use all sane-backends or some special backends from the (old)
>> scanbuttond project.
>> Supported platforms: Linux, FreeBSD, NetBSD, OpenBSD
>> ]
>>
>


-- 
Wilhelm




[sane-devel] Scanner Button Daemon [scanbd] 1.3: parse error in config file

2013-01-19 Thread Louis Lagendijk

On Sat, 2013-01-19 at 18:54 +0100, Rolf Bensch wrote:
> Hi Wilhelm,
> 
> Yesterday I started with scanbd and my CS9000F.
> 
> I mentioned an error with scanbd.conf:
> 
> $ /usr/local/bin/scanbd -df -c /usr/local/etc/scanbd/scanbd.conf
> /usr/local/etc/scanbd/scanbd.conf:197: no such option 'include'
> /usr/local/bin/scanbd: parse error in config file
> 
> As a workaround I copied the contents of pixma.conf into scanbd.conf.
> 
> It could be nice to use the 'include' function. Configuration will be
> much easier to use prepared conf files. I'll provide my conf and script
> files to the ml when everything is working.
> 
> Cheers,
> Rolf

hello Rolf
include works only in between sections. It does work here with the
default config. Could you please mail me the failing configuration so I
can have a look at it? As Wilhelm already pointed out, I did most of the
changes (and bugs :-) ) for the 1.3 release

Are you running the stock 1.3 version or from subversion?
Kind regards, Louis 





[sane-devel] Scanner Button Daemon [scanbd] 1.3: parse error in config file

2013-01-19 Thread Rolf Bensch
Hi Wilhelm,

Yesterday I started with scanbd and my CS9000F.

I mentioned an error with scanbd.conf:

$ /usr/local/bin/scanbd -df -c /usr/local/etc/scanbd/scanbd.conf
/usr/local/etc/scanbd/scanbd.conf:197: no such option 'include'
/usr/local/bin/scanbd: parse error in config file

As a workaround I copied the contents of pixma.conf into scanbd.conf.

It could be nice to use the 'include' function. Configuration will be
much easier to use prepared conf files. I'll provide my conf and script
files to the ml when everything is working.

Cheers,
Rolf



Am 06.01.2013 09:11, schrieb Wilhelm:
> Hi all,
> 
> I like to announce the new version 1.3 of scanbd, the scanner button
> daemon.
> 
> This release is mostly a maintainers release as it restructures the
> layout of the source repository and adds support for autotools /
> configure. This makes compilation / integration much more simple. More
> documentation and helpful integration files (like systemd-config or
> startup for FreeBSD e.g.) for various platforms are added.
> 
> I would like to clearly mention that all the hard work was done by
> Louis Lagendijk (louis at fazant.net)! Many thanks for his efforts and his
> patience!
> 
> http://sourceforge.net/projects/scanbd/files/releases/scanbd-1.3.tar.gz/download
> 
> 
> or
> 
> svn co https://scanbd.svn.sourceforge.net/svnroot/scanbd/releases/1.3
> 
> [
> scanbd is a scanner button daemon. It polls the scanner buttons looking
> for buttons pressed or function knob changes or other scanner events  as
> paper inserts / removals and at the same time allows
> also scan-applications to access the scanners. If buttons are pressed,
> etc., various actions can be submitted (scan, copy, email, ...) via
> action scripts. The function knob values are passed to the
> action-scripts as well. Scan actions are also signaled via dbus. This
> can be useful for foreign applications. Scans can also be triggered via
> dbus from foreign applications.
> On platforms which support signaling of dynamic device insertion /
> removal (libudev, dbus, hal) scanbd supports this as well.
> scanbd can use all sane-backends or some special backends from the (old)
> scanbuttond project.
> Supported platforms: Linux, FreeBSD, NetBSD, OpenBSD
> ]
>