Repeating Commands

Syntax: #number command

The specified command is sent to the server the number of times given by the number parameter. The number must be a constant. To use variables or mathematical expressions, see the #LOOP and #REPEAT commands. The current value of the repeat counter is saved in the predefined variable %repeatnum for your use in the command.


#3 {cd ..;ls}
send the command cd .. followed by the command ls to the server 3 times.

Add comment

Login or register to post comments