Hi all,
I want to write script to checking my process if it running OK.
my flow is:
-ssh server-->check process--->if true--->End
|if flase>---->start process---->check process again--->End
But I have problem with step "check process again", it duplicate for previous check process.
I want to write script to checking my process if it running OK.
my flow is:
-ssh server-->check process--->if true--->End
|if flase>---->start process---->check process again--->End
But I have problem with step "check process again", it duplicate for previous check process.
if __name__=='__main__':
check_process()
restart_process()
while True:
......
check_process()
time.sleep(10)
if "expression":
print ('All service start success')
breakHow I prevent this duplicate
