Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = subprocess.Popen(shlex.split(cmd_line), shell=True)
- self._logger.debug("command executed. PID=%s, Command=%s" % (p.pid, cmd_line))
- while p.poll() is None:
- time.sleep(0.1)
- r = p.returncode
- self._logger.debug("returned: %s" % r)
Add Comment
Please, Sign In to add comment