how to code a timer loop in a sh script
Tim Daneliuk
tundra at tundraware.com
Mon Nov 6 18:35:27 UTC 2017
On 11/06/2017 12:21 PM, Ernie Luzar wrote:
> Trying to write a sh script that will run continually and every 10
> minutes issue a group of commands. Been trying to use the wait command
> and the while loop command to achieve the desired effect with no joy.
> Would like an example of a wait loop code to see how its done.
>
> Thanks for any help.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
while [ 1 = 1 ]
do
command
command
...
sleep 600
done
--
----------------------------------------------------------------------------
Tim Daneliuk tundra at tundraware.com
PGP Key: http://www.tundraware.com/PGP/
More information about the freebsd-questions
mailing list