
| Current Path : /home/ift/52_procpy/dataninja/scripts/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //home/ift/52_procpy/dataninja/scripts/repeat.py |
import sys
import os
import time
zaehler = 0
cmd = sys.argv[1]
maxcount = int(sys.argv[2])
while zaehler < maxcount:
if os.path.isfile("__finished__.txt"):
os.remove("__finished__.txt")
zaehler = zaehler + 1
os.system("oap " + cmd + " run")
print str(zaehler) + "/" + str(maxcount)
else:
time.sleep(1)