|
By init.tcl I'm guessing you mean the configuration file passed to
aolserver at start up? /bin/nsd -t init.tcl ? If so, then this is more of a feature than a bug, the TCL interpreter used to load the configuration file is deallocated after the configuration is loaded. The only things available to adp pages or tcl procs after configuration is anything placed in ns_section, using ns_param, as it'll get stored in a global TCL hash. In order to make Berkeley available to TCL and ADP pages, it needs to be done in one of two places o Either in sourcing of public and private server libraries i.e a tcl file with package require Db_tcl in either aolserver/modules/tcl/ the public library or in aolserver/servers/(servername)/modules/tcl the private tcl library Code in either of these directories will be available to TCL and ADP during web server run time. o Or the second place is slightly more obscure, but I'm assured just as effective, aolserver/bin/init.tcl Changing proc ns_init 238 proc ns_init {} { 239 ns_ictl update; # check for proc/namespace update 240 } to load Berkeley will allow it to occur for all threads created or reused, this method might be a little overkill for most, but it's an option. P John Buckman wrote: I'm running into a problem where new Tcl commands that BerkeleyDB makes in init.tcl are not available in adp interpreters. -- Patrick O'Leary AOL Search Phone: + 1 703 265 1000 ext 31097 Smash forehead on keyboard to continue...
|
- [AOLSERVER] init.tcl created commands aren't in ADP inter... John Buckman
- Re: [AOLSERVER] init.tcl created commands aren't in ... patrick o'leary
- [AOLSERVER] per-interpreter globals possible? John Buckman
- Re: [AOLSERVER] per-interpreter globals poss... Jeremy Collins
- Re: [AOLSERVER] per-interpreter globals poss... Andrew Piskorski
- Re: [AOLSERVER] per-interpreter globals ... John Buckman
- Re: [AOLSERVER] per-interpreter glo... Nis Jorgensen
- Re: [AOLSERVER] per-interpreter... Jeremy Collins
- Re: [AOLSERVER] per-interpr... Nathan Folkman
- Re: [AOLSERVER] per-interpr... John Buckman
- Re: [AOLSERVER] per-interpr... Nathan Folkman
- Re: [AOLSERVER] per-interpr... Rick Gutleber
