execute a terminal command from python code example
Example 1: python how to run terminal command
#By Uku Loskit
import os
os.system("ls -l")
Example 2: call shell script from python
import subprocess
subprocess.call(["./shell.sh"])
# Make sure that "shell.sh" has "+x" permissions