Answers for "check status of subprocess"

0

check status of subprocess

p = subprocess.Popen(...
"""
A None value indicates that the process hasn't terminated yet.
"""
poll = p.poll()
if poll is None:
  # p.subprocess is alive
Posted by: Guest on May-21-2021

Browse Popular Code Answers by Language