cmd/forever.py

7 lines
97 B
Python

import subprocess
import sys
cmd = sys.argv[1:]
while True:
subprocess.run(cmd, shell=True)