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)




















Home »
  Python »
    Language Basics »




Python Basics
Operator
Statements
Function Definition
Class
Buildin Functions
Buildin Modules