Release 2.5p0 of OWFS has a new feature. Configuration files. You can use a file to specify all the command line options.

To use a configuration file, use

owfs -c filename [other options]
owhttps -c filename [other options]
etc (it works with owserver, owftpd, and all the language bindings)

The configuration file has a simple syntax:

# comments
option # with comment
option = value
Option # case insensitive for option
opt # unambiguous abbreviations

The options are the same long option names used on the command line (indeed the same list is used, so both will continue to track each other)

Configuration files can be nested up to 5 deep.
Lines can be up to 250 characters
Unlimited numbers of lines / file
More than one configuration file can be specified
Options not relevant to a particular program will be ignored
No default configuration file will be invoked.

So I envision use such as:

owserver -c owfs.conf -p 3000 -u
owhttpd -c owfs.conf -s 3000 -p 3001
owfs -c owfs.conf -s 3000 -m /1wire

# owfs.conf
# applies to all
error_level = 3
error_print = 2
Fahrenheit

Paul Alfille

See http://www.owfs.org/index.php?page=configuration_man_page for the man page (poorly rendered -- skips sections).
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to