while [ 1 ] do your_code sleep 600 done ... How do I prompt for input in a Linux shell script? 342.
stackoverflow.com