how to run shell command in python shell code example
Example 1: run linux command using python
import subprocess
subprocess.call("command1")
subprocess.call(["command1", "arg1", "arg2"])
Example 2: python run a system command
import os
cmd = "git --version"
returned_value = os.system(cmd) # returns the exit code in unix