tcl.loop
Loops continuously on any TCL command.
Syntax
loop {loop.count} {\sleep.count\} TCL.command
Description
performs any TCL command a specific number of times, or continuously, until any key is pressed on the keyboard.
The 'loop.count' indicates the number of times to execute the command. If 'loop.count' is omitted, the loop is infinite. To stop the loop, press any key on the keyboard.
The 'sleep.count' indicates the number of seconds for the process to 'sleep' between each command execution. If 'sleep.count' is not specified, the command repeats immediately.
Example
loop 3 \5\ ovf
ovf
overflow: 34860 reserve: 1024 blocks: 7 b-tree levels: 1 leaves: 1
ovf
overflow: 34924 reserve: 1024 blocks: 34 b-tree levels: 1 leaves: 1
ovf
overflow: 34909 reserve: 1024 blocks: 17 b-tree levels: 1 leaves: 1
This executes the 'ovf' command 3 times, sleeping 10 seconds between
each execution.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
