Ns modulepath

From AOLserver Wiki
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