Ns loop ctl

From AOLserver Wiki
Revision as of 21:59, 18 June 2010 by Akhassin (talk | contribs) (Created page with '<manpage>ns_loop_ctl</manpage> '''NAME''' : ns_loop_ctl - Replacements for standard Tcl loop commands which enable monitoring and control (new in AOLserver 4.5) (this command w…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<manpage>ns_loop_ctl</manpage>

NAME

ns_loop_ctl - Replacements for standard Tcl loop commands which enable monitoring and control (new in AOLserver 4.5) (this command was briefly called ns_lctl in some builds)

SYNOPSIS

ns_adp_ctl option ?bool | arg?

DESCRIPTION

The ns_for, ns_foreach, and ns_while commands are replacements for corresponding Tcl commands with the additional capability of monitoring and control through the ns_loop_ctl command.
  • ns_for start test next body
See the Tcl for man page for usage.
  • ns_foreach varlist1 list1 ?varlist2 list2 ...? body
See the Tcl foreach man page for usage.
  • ns_while test body
See the Tcl while man page for usage.
  • ns_loop_ctl cancel id
Mark the given loop to cancel at the next iteration, resulting in the loop returning with TCL_ERROR.
  • ns_loop_ctl eval id script

ns_loop_ctl info id

ns_loop_ctl install command

ns_loop_ctl list

ns_loop_ctl pause id

ns_loop_ctl result id

SEE ALSO