Last active
December 16, 2015 02:28
-
-
Save kaloprominat/5362380 to your computer and use it in GitHub Desktop.
python: create exec subprecess shell command program stdout stderr result
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import Popen, PIPE, STDOUT | |
sprocess = Popen("executing command", shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True) | |
result = sprocess.stdout.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment