Ns ictl

From AOLserver Wiki
Revision as of 22:25, 16 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 582)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_ictl.html


NAME

ns_ictl - Manipulate and introspect Tcl interpreter internals

SYNOPSIS

ns_ictl option ?arg arg ...?

DESCRIPTION

This command provides a mechanism to control Tcl interpreter internals.
The legal options (which may be abbreviated) are:
  • ns_ictl addmodule module
Adds a module to the list of modules, and returns the new list as the result.
This command simply appends the module to the list. It doesn't perform any loading of modules themselves.
  • ns_ictl cleanup
Runs all of the cleanup traces, and does any other necessary interpreter cleanup.
  • ns_ictl epoch
Returns the current epoch for the interpreter.
  • ns_ictl get
Returns the script that is executed at interpreter initialization time.
  • ns_ictl getmodules
Returns a list of currently loaded modules.
  • ns_ictl save script
Replaces the current interpreter initialization script with the new script.
  • ns_ictl update
Update the state (procs, namespaces) of an interpreter.
  • ns_ictl oncreate script
Registers a script to be executed at Tcl interpreter create time.
  • ns_ictl oncleanup script
Registers a script to be executed at Tcl interpreter cleanup time.
  • ns_ictl oninit script
Registers a script to be executed at Tcl interpreter init time. This can only be used during server initialization phase of server startup.
  • ns_ictl ondelete script
Registers a script to be executed at Tcl interpreter delete time.

EXAMPLES

   % ns_ictl epoch
   1
   % ns_ictl getmodules
   nsdb nslog nscp

SEE ALSO

ns_cleanup, ns_init, ns_markfordelete

Category Documentation - Category Core Tcl API