Ok I know I've asked a similar question, I understand how to do an infinate loop:
while [ 1 ]
do
foo
bar
then
sleep 10
done
But if I want to run some (quite a few) IF ELSE Statements in this loop how would I get the script to carry on looping once they had completed how would I go about this?
while/do/done. And if you intend to break out of it with Ctrl-C (or any other method of killing it), perhaps have a look at thetrapcommand.