Site Tools


repeat_command

Table of Contents

#$EPIC: repeat_command.txt,v 1.4 2006/08/19 06:07:20 sthalik Exp $

Synopsis:

repeat (<count>) <command>
repeat <count> <command>

Description:

This command repeatedly executes <command> <count> number of times. If <count> is enclosed in parenthesis, it is evaluated as a mathematical expression (ala ${…}), and if it is not, it is evaluated as regular text.

Examples:

To very boldly display the time each hour:

    on ^timer "??:00*" {
       repeat 3 echo *** The time is $0!!
    }
repeat_command.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1