Using the Tcl Library
Revision as of 13:30, 7 March 2006 by 64.236.208.25 (talk)
The server has two Tcl directories (or "libraries"). One is "shared" which means all servers source its contents at start-up. The shared library location is not directly configurable. It is set to the subdirectory "modules/tcl" within [ns_info home], or:
[ns_info home]/modules/tcl
This can be retrieved from within a script using [ns_library shared].
Then, there is a per-server Tcl directory that's referred to as "private" which is configured using the config section "ns/server/${servername}/tcl" and the "library" parameter. If not specified in the config, it defaults to the server's module directory, in the "tcl" subdirectory, which is:
[ns_info home]/servers/${servername}/modules/tcl
See also
- ns_info home
- ns_library