how to code a timer loop in a sh script

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Wed Nov 8 07:26:03 UTC 2017


On Mon, 6 Nov 2017 19:24+0100, Michael Schuster wrote:

> while [ 1 ]; do
>     do_stuff
>     sleep 600
> done

This should be even better:

while true; do
    do_stuff
    sleep 600
done

-- 
Trond.


More information about the freebsd-questions mailing list