Guest User

Untitled

a guest
Jan 18th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. p = subprocess.Popen(shlex.split(cmd_line), shell=True)
  2. self._logger.debug("command executed. PID=%s, Command=%s" % (p.pid, cmd_line))
  3. while p.poll() is None:
  4. time.sleep(0.1)
  5. r = p.returncode
  6. self._logger.debug("returned: %s" % r)
Add Comment
Please, Sign In to add comment