On 2006.03.07, Jeremy Henty <[EMAIL PROTECTED]> wrote:
> 
> So does the interpret split the modules/tcl code up into "once-only" 
> and "per-interpreter" parts?  How is this split made?  If a Tcl file 
> "source"s another file, is that file split too?

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

-- Dossy

-- 
Dossy Shiobara              | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to