Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

configreader(3) [debian man page]

ConfigReader(3) 					User Contributed Perl Documentation					   ConfigReader(3)

NAME
ConfigReader - Read directives from a configuration file. DESCRIPTION
The ConfigReader library is a set of classes which reads directives from a configuration file. The library is completely object oriented, and it is envisioned that parsers for new styles of configuration files can be easily added. ConfigReader::Spec encapsulates a specification for configuration directives. You can specify which directives can be in the configuration file, aliases for the directive, whether the directive is required or has a default value, and how to parse the directive value. Here's an example of how one directive might be specified: required $spec 'HomePage', 'new URI::URL'; This defines a required directive called 'HomePage'. To parse the value from the configuration file, the URI::URL::new() method will be called with the string value as its argument. If the directive name is a simple string, it will be used both to refer to the directive in the Perl program, and as the name in the con- figuration file. You can also specify an alias by using an array ref. For example, suppose you wanted to use "index" as the name of the directive in the configuration file, but to avoid confusion with Perl's index() function you wanted to refer to the directive inside the program as the "file_index". This will do the trick: ['file_index', 'index'] You can specify any number of aliases for the directive: ['file_index', 'index', 'file_index', 'contents', ...] The parsing function or method is called to translate the value string from the configuration file into the value used by the program. It can be specified in several different ways: code ref static method object method undefined You can also specify a default value to be used if a directive is not specified in the configuration file. string value code ref undefined ConfigReader::Values stores a set of directive values that have been read from a configuration file. It stores a reference to an associ- ated Spec as a member variable. Separating the specification from the values makes it possible to use a single specification for multiple sets of values. ConfigReader::DirectiveStyle implements a reader for a common style of configuration file. It is a subclass of ConfigReader::Values. Directive names are followed by their value, one per line: HomePage http://www.w3.org/ Services /etc/services perl v5.8.2 1996-02-14 ConfigReader(3)

Check Out this Related Man Page

DACSCONF(1)						       DACS Commands Manual						       DACSCONF(1)

NAME
dacsconf - display configuration directives SYNOPSIS
dacsconf [dacsoptions[1]] [-vars] [directive-name...] dacsconf [-item_types] DESCRIPTION
This program is part of the DACS suite. The dacsconf utility processes DACS configuration files (see dacs.conf(5)[2]) and outputs to stdout the values of directives or variable references currently in effect for the specified jurisdiction. Although the order in which clauses appear in configuration files can be important, the order of configuration directives is for the most part not significant. The exception is the EVAL[3] directive. These directives are listed in the order in which they would be evaluated, and their unevaluated values appear in the output. This program is also available as a DACS web service, dacs_conf(8)[4]. Security Because the configuration might reveal information that could be taken advantage of by an attacker, only the DACS administrator should be able to run this command. OPTIONS
-item_types List the names of all predefined item types. The presence of a name does not imply that DACS has been configured to use the item type. -vars By default, directives that appear within a clause (e.g., <Auth> or <Roles>) are emitted in the context of that clause. This option "flattens" the output by emitting it in the form of DACS variables. For example, the STYLE directive in an Auth section having an id of foo will appear as AUTH.FOO.STYLE in the output. All variables in the Conf namespace are displayed, including those set by EVAL. directive-name One or more directive names or variable references may be provided to limit the output. It is not an error if a directive-name is not defined. FILES
conf.css[5] DIAGNOSTICS
The program exits 0 if everything was fine, 1 if an error occurred. Error messages are printed to stderr. SEE ALSO
dacs_conf(8)[4], dacs.conf(5)[2] AUTHOR
Distributed Systems Software (www.dss.ca[6]) COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[7] file that accompanies the distribution for licensing information. NOTES
1. dacsoptions http://dacs.dss.ca/man/dacs.1.html#dacsoptions 2. dacs.conf(5) http://dacs.dss.ca/man/dacs.conf.5.html 3. EVAL http://dacs.dss.ca/man/dacs.conf.5.html#EVAL 4. dacs_conf(8) http://dacs.dss.ca/man/dacs_conf.8.html 5. conf.css http://dacs.dss.ca/man//css/conf.css 6. www.dss.ca http://www.dss.ca 7. LICENSE http://dacs.dss.ca/man/../misc/LICENSE DACS 1.4.27b 10/22/2012 DACSCONF(1)
Man Page