Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to execute bash commands in python script

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