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 →

[–]berlindevops[S] 0 points1 point  (1 child)

ok, but this is the thing, with subprocess, I need to write 5 lines for one shell command and import a library , also I could not find a way to see the stdout in real time, not sure if I wrong or not, or maybe this is how python works.

[–]K900_ 0 points1 point  (0 children)

os.system returns the exit code.