Difference between revisions of "Ns configsection"
Jump to navigation
Jump to search
(reverting to revision 4783 on 16:37, 9 March 2006) |
|||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <manpage>ns_configsection</manpage> | |
− | |||
− | |||
'''NAME''' | '''NAME''' | ||
Line 17: | Line 15: | ||
'''EXAMPLES''' | '''EXAMPLES''' | ||
− | % set setId | + | % set setId [ns_configsection ns/parameters] |
t0 | t0 | ||
Line 23: | Line 21: | ||
ns/parameters | ns/parameters | ||
− | % array set a | + | % array set a [ns_set array $setId] |
% array names a | % array names a | ||
EnableAdmin MailHost Home Group User debug | EnableAdmin MailHost Home Group User debug | ||
Line 30: | Line 28: | ||
[[ns_config]], [[ns_configsections]], [[ns_set]] | [[ns_config]], [[ns_configsections]], [[ns_set]] | ||
− | |||
---- | ---- | ||
− | + | [[Category:Documentation]] [[Category:Core Tcl API]] | |
− | [[Category Documentation]] |
Latest revision as of 19:50, 7 February 2009
<manpage>ns_configsection</manpage>
NAME
ns_configsection - Return a handle to an ns_set for a section of the server's configuration
SYNOPSIS
ns_configsection section
DESCRIPTION
This command returns a handle for an ns_set which contains all the parameter key-value pairs for the section from the server's configuration. If the section is not defined, this command returns an empty string.
EXAMPLES
% set setId [ns_configsection ns/parameters] t0
% ns_set name $setId ns/parameters
% array set a [ns_set array $setId] % array names a EnableAdmin MailHost Home Group User debug
SEE ALSO
ns_config, ns_configsections, ns_set