page

Jun 3, 2017

python - os.system, subprocess to spawn new processes

https://docs.python.org/2/library/subprocess.html



https://stackoverflow.com/questions/18739239/python-how-to-get-stdout-after-running-os-system?noredirect=1&lq=1

https://stackoverflow.com/questions/3791465/python-os-system-for-command-line-call-linux-not-returning-what-it-should

import os
os.system('ls')
from subprocess import call
call('ls')

No comments:

Post a Comment