User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

repeat_command [2006/08/29 16:08] (current)
Line 1: Line 1:
 +#$EPIC: repeat_command.txt,​v 1.4 2006/08/19 06:07:20 sthalik Exp $
 +__repeat__ (<​count>​) <​command>​ \\
 +__repeat__ <​count>​ <​command>​
 +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.
 +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 (external edit)