Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to execute bash commands in python script

import subprocess
subprocess.call(["sudo", "apt", "update"])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #execute #bash #commands #python #script
ADD COMMENT
Topic
Name
1+6 =