@@ -24,19 +24,16 @@ def popen(command, bg=False):
string = command
if bg == True:
command = command + ' &'
-
- print command
process = os.popen(command)
output = process.read()
process.close()
- print output
return output
# 文档转换
def convert():
check = 'ps -ef | grep master.py | grep -v grep | wc -l'
value = int(popen(check))
- if value:
+ if value > 1:
return 1;
r = redis()
c = 'office_file'