I have a Python script that needs to be crashes after 6 hours because the authorization expires. I want to write a Script that open and runs my original python script, closes it after 6 hours, and then reopens and runs it.
So basically a script that behaves like this
while true:
run foo.py
foo.py, obviously is my original python script. foo.py runs completely before it loops.
I tried adding an if loop in the python script that reauthorizes when authorization expires but it wouldn't reauthorize. I need to close the script and reopen to authorize.