Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Nov 2017 08:25:55 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        freeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: how to code a timer loop in a sh script
Message-ID:  <alpine.BSF.2.21.1711080824130.1036@mail.fig.ol.no>
In-Reply-To: <CADqw_g%2BouzDLBdPosKiPSmRZuP6Am%2Bc7OGUZPGWX249D97DUhQ@mail.gmail.com>
References:  <5A00A826.2000501@gmail.com> <CADqw_g%2BouzDLBdPosKiPSmRZuP6Am%2Bc7OGUZPGWX249D97DUhQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.1711080824130.1036>