def start(self):
self.stdout_file = open(self.stdout_filename, 'w')
self.cmd = self.formatCmd(self.host_conf['cmd'])
self.proc = self.host.popen(self.cmd, stdout=self.stdout_file, shell=True, preexec_fn=os.setpgrp)
print self.host.name, self.cmd
if 'startup_sleep' in self.host_conf:
sleep(self.host_conf['startup_sleep'])
评论列表
文章目录