The old method used to be placing a var in a text file at the start of the script and setting it to zero at the end.
I use this method very successfully although there is probably a more elegant solution.
The script will not run again if the previous running failed in some way but I overcome that with the var I use, epoc time value, a quick check of it's value how long since the last run. If over a given time, (you decide the duration) then run it again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.