Run shell command with os.system.
import os def run_command_by_os_system(cmd): print "Running cmd: " + cmd if 0 != os.system(cmd): exit(1)