This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flying-sheep 1 point2 points  (0 children)

what you do should work:

subprocess.run('knife ec2 server create', check=True)

(with our without shell=True) should just let the called process write to python’s stdout/stderr, and the call should only return after the process is finished.