INNCONFVAL(1) | InterNetNews Documentation | INNCONFVAL(1) |
innconfval - Get configuration parameters from inn.conf
innconfval [-pstv] [-i file] [parameter ...]
innconfval -C [-i file]
innconfval normally prints the values of the parameters specified on the command line. By default, it just prints the parameter values, but if -p, -s, or -t are given, it instead prints the parameter and value in the form of a variable assignment in Perl, Bourne shell, or Tcl respectively. If no parameters are specifically requested, innconfval prints out all parameter values (this isn't particularly useful unless one of -p, -s, or -t were specified).
All parameters are taken from inn.conf except for version, which is always the version string of INN.
If given the -C option, innconfval instead checks inn.conf, reporting any problems found to standard error. innconfval will exit with status 0 if no problems are found and with status 1 otherwise.
Here is an example:
$enableoverview = 'true'; @extraoverviewadvertised = ( 'Newsgroups', 'Injection-Info' ); @extraoverviewhidden = undef; $organization = 'Let\'s try nasty "quotes"'; $maxforks = 10;
If innconfval is called via the Perl "INN::Config" module, all these variables are properly exported.
Here is an example:
ENABLEOVERVIEW=true; export ENABLEOVERVIEW; EXTRAOVERVIEWADVERTISED='"Newsgroups" "Injection-Info"'; export EXTRAOVERVIEWADVERTISED; ORGANIZATION='Let'\''s try nasty "quotes"'; export ORGANIZATION; MAXFORKS=10; export MAXFORKS;
Here is an example:
set inn_enableoverview "true" set inn_extraoverviewadvertised { "Newsgroups" "Injection-Info" } set inn_organization "Let's try nasty \"quotes\"" set inn_maxforks 10
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews.
$Id: innconfval.pod 9288 2011-07-22 23:08:57Z iulius $
2015-09-12 | INN 2.6.4 |