My config files use set homedir [file dirname [ns_info config]]
for this. Of course, this only works if your config file lives in the right place. janine On Sunday, January 5, 2003, at 05:51 PM, Andrew Piskorski wrote:
Is there any Tcl command which to tell me the the command used to start nsd, which I can use WHILE sourcing the nsd.tcl config file? For example, if I start nsd with /web/aol3/bin/nsd, [ns_library shared] will return "/web/aol3/modules/tcl", which would work for this, EXCEPT that the ns_library command doesn't work at all during AOLserver startup, while sourcing the nsd.tcl config file. So far, the only thing I can think of that would work is to set an environment variable before running nsd, and then get at that variable via the Tcl global env array from inside nsd. Which is kind of ugly. Instead, is there any way to let me access the command line used to start nsd directly? I would like to do that, in order to set other things in nsd.tcl based on where the nsd binary is. E.g., with "/web/aol3/bin/nsd", I want to all logs to go into "/web/aol3/log". -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com
-- Janine Sisk President/CEO furfly.net, LLC Mont Vernon, NH Phone: 603-672-1122
