jjmark15
5/15/2017 - 2:40 PM

get the output from a subprocess

get the output from a subprocess

import subprocess

stdoutdata = subprocess.getoutput("ls")
print(stdoutdata.split())