import subprocess as sp def bash_command(command): popen = sp.Popen(command) out, err = popen.communicate() return out
popen = subprocess.Popen(['/bin/bash', '-c', command])
import subprocess as sp def bash_command(command): popen = sp.Popen(command) out, err = popen.communicate() return out
popen = subprocess.Popen(['/bin/bash', '-c', command])