FarmerLi
4/13/2018 - 6:03 AM

Run shell command with os.system.

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)