1001z
Junior Member
Posts: 51
|
Post by 1001z on Sept 4, 2019 18:23:21 GMT
Sometimes when script ran like 6-8 hours. I have to restart the script.
Any API or how can do that?
Thanks so much. Good job guys.
|
|
|
Post by AnkuLua on Sept 4, 2019 23:40:06 GMT
Restart? How about dofile() the same script?
Or you can use programming skill to achieve that. Just wrap everything into one function. Then call it in a always loop.
function main() -- do anything return -- just return when you want to restart the script end
while (true) do main() end
|
|
1001z
Junior Member
Posts: 51
|
Post by 1001z on Sept 5, 2019 19:56:27 GMT
dofile() or return will clear something like cache / memory ? (I will try this night)
"Play/Stop" button will make my script perfectly when it ran 5+ hours.
PS: Im using also httpPost()
|
|
1001z
Junior Member
Posts: 51
|
Post by 1001z on Sept 7, 2019 10:03:51 GMT
Comfirmed!
Your trick working good!
Thanks so much
|
|