Provided by: aolserver4-dev_4.5.1-18_amd64 bug

NAME

       ns_for,  ns_foreach, ns_while, ns_lctl - Replacements for standard Tcl loop commands which
       enable monitoring and control

SYNOPSIS

       ns_for start test next body
       ns_foreach varname list body
       ns_foreach varlist1 list1 ?varlist2 list2 ...? body
       ns_while test body
       ns_lctl cancel id
       ns_lctl eval id script
       ns_lctl info id
       ns_lctl install command
       ns_lctl list
       ns_lctl pause id
       ns_lctl result id
_________________________________________________________________

DESCRIPTION

       The ns_for, ns_foreach, and ns_while  commands  are  replacements  for  cooresponding  Tcl
       commands  with  the  additional  capability  of monitoring and control through the ns_lctl
       command.

       ns_for start test next body
              See the for(n) man page for usage.

       ns_foreach start test next body
              See the foreach(n) man page for usage.

       ns_foreach varlist1 list1 ?varlist2 list2 ...? body
              See the foreach(n) man page for usage.

       ns_while test body
              See the while(n) man page for usage.

       ns_lctl cancel id
              Mark the given loop to  cancel  at  the  next  iteration,  resulting  in  the  loop
              returning with TCL_ERROR.

       ns_lctl eval id script

       ns_lctl info id

       ns_lctl install command

       ns_lctl list

       ns_lctl pause id

       ns_lctl result id

SEE ALSO

       for(n), foreach(n), while(n)

KEYWORDS

       threads, iteration, list, looping, cancel