mirror of
https://github.com/jcreek/linux-python-forever-runner.git
synced 2026-07-12 18:33:47 +00:00
9 lines
192 B
Python
9 lines
192 B
Python
#!/usr/bin/python
|
|
from subprocess import Popen
|
|
import sys
|
|
|
|
filename = sys.argv[1]
|
|
while True:
|
|
print("\nStarting " + filename)
|
|
p = Popen("python3 " + filename, shell=True)
|
|
p.wait() |