Commit 58df24e1 authored by 张彦钊's avatar 张彦钊

add keep_process file

parent c6d1c539
import os
def check():
out=os.popen("ps aux | grep diaryQueueUpdate.py").read()
flag = False
for line in out.splitlines():
if 'python diaryQueueUpdate.py' in line:
flag = True
return flag
if __name__ == "__main()":
print(check())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment