On Jun 13, 2005, at 5:14 PM, Tom Jackson wrote:
I don't see how any of this works the way you described it, and even if it did, you shouldn't need a shared var to run a proc once daily, otherwise we need to change the proc name to ns_schedule_run_once_per_thread_daily.
Maybe so, but it was SOP (standard operating procedure) way back in the ancient ACS days. There are many examples of it in the older code - try tcl/notification-defs.tcl from OpenACS 3.2.5, as the first example I came up with. The idea, as I understood it, was that your script was going to be loaded by each thread, so the way to make sure that something got executed only once was to set a flag that it had already happened. It used to work fine, but something seems to have changed recently so that the ns_share'd variable isn't visible from the other threads. I'm not calling it a bug, since no-one cares about ns_share anymore, just something I need to work around.
The way to replace ns_share is to use nsv:
Thanks! janine -- 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.
