appprocrunner.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:p4app 作者: p4lang 项目源码 文件源码
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'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号