[ Previous ] [ Contents ] [ Index ] [ Next ]

Tcl Script Order of Evaluation

At server startup time, Tcl initialization is performed in the following steps for each virtual server:

  1. If a shared Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists and if an init.tcl file does not also exist in the private Tcl directory). Then all .tcl files that are not also in the private Tcl directory are sourced alphabetically.

  2. If a private Tcl directory is specified, the init.tcl file in that directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.

  3. For each module (including any Tcl-only modules as described on page 32) in the virtual server:

    1. If a shared Tcl directory is specified, the init.tcl file in the module-name subdirectory is sourced first (if it exists and if an init.tcl file does not also exist in the private Tcl directory). Then all .tcl files that are not also in the private Tcl directory are sourced alphabetically.

    2. If a private Tcl directory is specified, the init.tcl file in the module-name subdirectory of the private directory is sourced first (if it exists), and then all the remaining .tcl files are sourced alphabetically.

Tcl Initialization

You can also explicitly initialize Tcl libraries while AOLserver is running through the Tcl Administration pages. Follow the Tcl Scripting link on the server administration page (/NS/Admin). Then follow one of the links to initialize the private or shared Tcl library, Reinitialize Private Tcl or Reinitialize Shared Tcl.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.