1INNCONFVAL(1)             InterNetNews Documentation             INNCONFVAL(1)
2
3
4

NAME

6       innconfval - Get configuration parameters from inn.conf
7

SYNOPSIS

9       innconfval [-pstv] [-i file] [parameter ...]
10
11       innconfval -C [-i file]
12

DESCRIPTION

14       innconfval normally prints the values of the parameters specified on
15       the command line.  By default, it just prints the parameter values, but
16       if -p, -s, or -t are given, it instead prints the parameter and value
17       in the form of a variable assignment in Perl, Bourne shell, or Tcl
18       respectively.  If no parameters are specifically requested, innconfval
19       prints out all parameter values (this isn't particularly useful unless
20       one of -p, -s, or -t were specified).
21
22       All parameters are taken from inn.conf except for version, which is
23       always the version string of INN.
24
25       If given the -C option, innconfval instead checks inn.conf, reporting
26       any problems found to standard error.  innconfval will exit with status
27       0 if no problems are found and with status 1 otherwise.
28

OPTIONS

30       -C  Check inn.conf rather than printing out the values of parameters.
31
32       -i file
33           Use file as the source configuration file rather than inn.conf.
34           file must be a valid inn.conf file and will be parsed the same as
35           inn.conf would be.
36
37       -p  Print out parameters as Perl assignment statements.  The variable
38           name will be the same as the inn.conf parameter, and string values
39           will be enclosed in single quotes with appropriate escaping.
40           Boolean values will be mapped to the strings "true" or "false".
41           List values will be mapped to an array of strings.  NULL values are
42           printed out with the "undef" value.
43
44           Here is an example:
45
46               $enableoverview = 'true';
47               @extraoverviewadvertised = ( 'Newsgroups', 'Injection-Info' );
48               @extraoverviewhidden = undef;
49               $organization = 'Let\'s try nasty "quotes"';
50               $maxforks = 10;
51
52           If innconfval is called via the Perl "INN::Config" module, all
53           these variables are properly exported.
54
55       -s  Print out parameters as Bourne shell assignment statements.  The
56           variable name will be the inn.conf parameter name in all capitals,
57           and all variables will be exported, if not NULL.  String values
58           will be enclosed in single quotes with appropriate escaping, and
59           boolean values will be mapped to "true" or "false".  List values
60           will be mapped to a space-separated string representing an array of
61           strings (as Bourne shell does not recognize arrays, contrary to
62           several other shells, an array cannot be returned for
63           interoperability reasons).
64
65           Here is an example:
66
67               ENABLEOVERVIEW=true; export ENABLEOVERVIEW;
68               EXTRAOVERVIEWADVERTISED='"Newsgroups" "Injection-Info"'; export EXTRAOVERVIEWADVERTISED;
69               ORGANIZATION='Let'\''s try nasty "quotes"'; export ORGANIZATION;
70               MAXFORKS=10; export MAXFORKS;
71
72       -t  Print out parameters as Tcl assignment statements.  The variable
73           name will be the same as the inn.conf parameter name but with
74           "inn_" prepended, and string variables will be escaped
75           appropriately.  Boolean values will be mapped to the strings "true"
76           or "false".  List values will be mapped to an array of strings.
77           NULL values are not printed out.
78
79           Here is an example:
80
81               set inn_enableoverview "true"
82               set inn_extraoverviewadvertised { "Newsgroups" "Injection-Info" }
83               set inn_organization "Let's try nasty \"quotes\""
84               set inn_maxforks 10
85
86       -v  Print INN's version.  This is equivalent to "innconfval version".
87

HISTORY

89       Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews.
90
91       $Id: innconfval.pod 9288 2011-07-22 23:08:57Z iulius $
92

SEE ALSO

94       inn.conf(5), INN::Config(3pm).
95
96
97
98INN 2.6.4                         2015-09-12                     INNCONFVAL(1)
Impressum