Defining your Tcl proc on and ADP page and then trying to run from the
scheduler thread with ns_schedule_proc can't possibly work. You must
defined your "proc dosomething" in a *.tcl file which is sourced by
AOLserver when AOLserver starts up, so that the proc is defined for
all Tcl interps in all threads.
On Tue, Jul 26, 2005 at 01:58:32PM +0100, John Ekins wrote:
> I'm having a problem with ns_schedule_proc. I tried writing a simple script
> but it didn't run. I've copied the example from the aolserver.com site* into a
> file called proc.adp and opened the file in a browser. To save looking up the
> link here is the example:
>
> proc dosomething blah {
> ns_log Notice "proc with arg '$blah'"
> }
> ns_schedule_proc 10 dosomething $arg1
>
> I modified it with a harcoded "john" instead of $arg1. The error I get in the
> server log is:
>
> invalid command name "dosomething" while executing
> "dosomething john"
>
> Other *.adp pages run fine, but for some reason I can't get ns_schedule_proc
> to work. What am I doing wrong?
--
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com/
--
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.