Difference between revisions of "Ns modulepath"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 603)
 
 
Line 35: Line 35:
 
: [[ns_info]] '''home'''
 
: [[ns_info]] '''home'''
  
----
 
  
[[Category Documentation]] - [[Category Core Tcl API]]
+
[[Category:Documentation]] [[Category:Core Tcl API]]

Latest revision as of 19:52, 7 February 2009

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