Date: 11/18/07 (Java Web) Keywords: no keywords This is how you create an infinite loop in bash to run a piece of code perpetually at pre-defined intervals. #!/bin/bash while [ 1 ] do # Your code goes here # Modify sleep time (in seconds) as needed below [...] Source: http://blog.taragana.com/index.php/archive/how-to-write-infinite-loop-in-bash/
|