SyntaxFix
Write A Post
Hire A Developer
Questions
A very simple infinite loop.. :)
while true ; do continue ; done
Fr your question it would be:
while true; do foo ; sleep 2 ; done