INNCONFVAL(1) | InterNetNews Documentation | INNCONFVAL(1) |
innconfval - Get configuration parameters from configuration files
innconfval [-pstv] [-f file] [-F filetype] [-i innconffile] [parameter ...]
innconfval -C [-i innconffile]
innconfval normally prints the values of the parameters specified on the command line, from inn.conf. 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.
Use the -f and -F options to specify another configuration file from which to print the values of the parameters.
If given the -C option, innconfval instead checks inn.conf, reporting any problems found to standard error.
For instance, run "innconfval -F inn-secrets.conf canlockuser" to retrieve the canlockuser value from inn-secrets.conf.
The default path to the configuration file of the requested type will be used, unless -f is given (or a specific source configuration file for inn.conf is set with -i and defines another pathetc location).
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.
inn.conf(5), inn-secrets.conf(5), INN::Config(3pm).
2024-03-31 | INN 2.7.2 |