Answers for "run python script with arguments from bash script"

3

how to run linux command in python

import os
cmd = 'your command here'
os.system(cmd)
Posted by: Guest on May-18-2020
3

how to execute bash commands in python script

import subprocess
subprocess.call(["sudo", "apt", "update"])
Posted by: Guest on November-17-2019

Code answers related to "run python script with arguments from bash script"

Python Answers by Framework

Browse Popular Code Answers by Language