/ Published in: Python
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from subprocess import Popen from subprocess import PIPE bla = Popen(["ls", "-l"], stdout=PIPE).communicate()[0]
URL: http://docs.python.org/library/subprocess.html
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)