Right, I actually do ns_eval $script where script is a series of loads.
Rusty
Dossy Shiobara wrote:
On 2007.11.02, Dave Bauer <[EMAIL PROTECTED]> wrote:
I use ns_eval {source the_tcl_file} which only works for one file at a time,
but seems to make sure the files are reloaded in every interpreter including
scheduled procedure threads. Reloading in a filter does not work for
scheduled proc threads. OpenACS has this technique that reloads changed
files in a registered filter, but it suffers from the same problem that
occaisionally the files are not reloaded into the interpreter.
One thing to note is that by default, ns_eval is asynchronous--it
actually executes the passed script in a ns_job thread, IIRC.
If you have multiple scripts to ns_eval and they are order-sensitive
(i.e., one file must be sourced before another), then do them all from
the same single ns_eval script:
ns_eval {
source fileA.tcl
source fileB.tcl
}
Forgetting that ns_eval is async. and making multiple ns_eval calls can
be problematic if there's dependencies.
-- Dossy
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.