Add forever.py.
This commit is contained in:
parent
214a244e9d
commit
ad667d0a17
1 changed files with 6 additions and 0 deletions
6
forever.py
Normal file
6
forever.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
cmd = sys.argv[1:]
|
||||||
|
while True:
|
||||||
|
subprocess.run(cmd, shell=True)
|
Loading…
Reference in a new issue