4 lines
112 B
Python
4 lines
112 B
Python
|
|
from subprocess import PIPE, Popen, STDOUT
|
||
|
|
p = Popen('ls', stdout=PIPE, stderr=STDOUT)
|
||
|
|
print p.communicate()[0]
|