I have a script that clicks the refresh button on firefox, and I have a script to delay. What I don't have is a script to make those actions repeat until I ^c it. How would I mkake this loop?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

Put your script in a while loop. Sample code below, in-depth tutorial here.

#!/bin/bash

# This script opens 4 terminal windows.

i="0"

while [ $i -lt 4 ]
do
xterm &
i=$[$i+1]
done
link|improve this answer
Thanks got it working. – JShoe Apr 7 '11 at 3:08
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.