소스 검색

@TODO: Folder handling clean/archive

steve 8 년 전
부모
커밋
fc413cd239
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/utils/agents/actor.py

+ 2 - 2
src/utils/agents/actor.py

@@ -62,8 +62,8 @@ class Kill(Actor):
     def isValid(self,item):                
         return (item is not None) and (item in self.config)
 	def process(self,item):
-		cmd = "".join(["ps -eo pid,command|grep ",item,'|grep -E "^ {0,1}[0-9]+" -o|xargs kill -9'])
-		self.execute(cmd)
+		args = "".join(["-eo pid,command|grep ",item,'|grep -E "^ {0,1}[0-9]+" -o|xargs kill -9'])
+		self.execute(["ps",args])
 		#
 		# We need to make sure we can get assess the process on this server
 		#