I have Python script, that is run from Linux(Cent OS).
How can I run this process(script) forever? Or such as it will be re-run after crash?
I have Python script, that is run from Linux(Cent OS).
How can I run this process(script) forever? Or such as it will be re-run after crash?
1 way bash script
while true;
dopython index.py
done
2 way start python script
import os
while True:os.system("python index.py")
3 way from external python script import index.py
and then start external script.