w*s 发帖数: 7227 | 1 This is what i suspect, python os.system( ) doesn't come back sometimes.
i have loop.py, it's very simple
for x in range(0, 10000):
rc = os.system("my_other_script.py")
time.sleep(10)
os.system("linux_cmd_to_turn_off_my_other_script")
Coming back from weekend, i don't see outputs from my_other_script.
When i manually run "linux_cmd_to_turn_off_my_other_script",
my_other_script seems alive again.
so i was thinking what happens if this line never come back ?
rc = os.system("my_other_script.py")
Big cows, any suggestions ? |