Answers for "python execute bash command library"

3

how to execute bash commands in python script

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

call python from bash shell

#!/bin/sh
python python_script.py
Posted by: Guest on May-25-2021

Code answers related to "python execute bash command library"

Python Answers by Framework

Browse Popular Code Answers by Language