Date: Mon, 6 Nov 2017 14:38:11 -0600 From: Tim Daneliuk <tundra@tundraware.com> To: markham breitbach <markham@ssimicro.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: how to code a timer loop in a sh script Message-ID: <cda306c9-7bb6-da43-ae4a-990901eefdd8@tundraware.com> In-Reply-To: <dbbfcbcc-84fa-10d7-bf6c-df5f6fb73700@ssimicro.com> References: <5A00A826.2000501@gmail.com> <dbbfcbcc-84fa-10d7-bf6c-df5f6fb73700@ssimicro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/06/2017 12:28 PM, markham breitbach wrote: > Any reason not to use cron for this? I don't know the OP's use case, but one reason to NOT use cron is that it's hard to maintain state information across iterations. In an infinite loop as a number of us have described, the script can keep track of state as each iteration executes, to be used by the next iteration. While that's possible across cron invocations, it's generally a lot uglier to to .... -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cda306c9-7bb6-da43-ae4a-990901eefdd8>