Ns modulepath

From AOLserver Wiki
Revision as of 19:52, 7 February 2009 by Gustafn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


NAME

ns_modulepath - Get the paths to a server's modules

SYNOPSIS

ns_modulepath server ?module ...?

DESCRIPTION

This command returns the path to a server's directory and optionally to its modules. The command does no validation on the server to see if it is actually defined.
The server directory is a subdirectory of "servers" under the path returned from ns_info home. Modules are relative to that directory in the subdirectory "modules".

EXAMPLES

   % ns_modulepath exampleServer
   /home/aolserver/servers/exampleServer
   % file join ns_info home servers exampleServer
   /home/aolserver/servers/exampleServer
   % ns_modulepath exampleServer exampleModule
   /home/aolserver/servers/exampleServer/modules/exampleModule
   % file join ns_info home servers exampleServer modules exampleModule
   /home/aolserver/servers/exampleServer/modules/exampleModule

SEE ALSO

ns_info home