Examples of while
and watch
commands to run command in a loop or at an interval
# while loop
while sleep 5; do cmd; done
# watch command
watch -n 5 cmd
## while loop, run every X seconds
while sleep 1; do curl -I http://cache.example.com; done