subprocess Module
Call system command
from subprocess import call
import os
res = call(('cat', '/etc/motd'))
res = call(('dir', r'c:\windows\temp'), shell=True)
from subprocess import call
import os
res = call(('cat', '/etc/motd'))
res = call(('dir', r'c:\windows\temp'), shell=True)