dever %!s(int64=3) %!d(string=hai) anos
pai
achega
cbb43dacd1
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      master_cron.py

+ 1 - 4
master_cron.py

@@ -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'