Forum OpenACS Development: Re: ns_job valid procs

Collapse
4: Re: ns_job valid procs (response to 3)
Posted by Gustaf Neumann on

The NaviServer does not produce the error with variable "bar", just tested the following snippet.

ns_eval {
  ad_proc foo {bar} {
    ns_log notice "hello, $bar"
  }
}

if {"test_queue" ni [ns_job queues]} {
    ns_job create test_queue
}
ns_job queue test_queue [list foo XXX]

Notice, that ns_job expects the script as a single argument.

all the best
-g