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