@TODO: Folder handling clean/archive

community
Steve L. Nyemba 8 years ago
parent 5083ea7c90
commit fc413cd239

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

Loading…
Cancel
Save