Commit 0b961c69 authored by 张彦钊's avatar 张彦钊

add print

parent 84589b87
......@@ -2,12 +2,13 @@ import os
def check():
out=os.popen("ps aux | grep diaryQueueUpdate.py").read()
flag = False
flag = 1
for line in out.splitlines():
if 'python diaryQueueUpdate.py' in line:
flag = True
flag = 2
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