in reply to Help to infinite loop

You might want to use the crontab.
--Artist