So führen Sie Bash -Befehle im Python -Skript aus
import subprocess
subprocess.call(["sudo", "apt", "update"])
Common Melba Finch
import subprocess
subprocess.call(["sudo", "apt", "update"])
import os
stream = os.popen('echo Returned output')
output = stream.read()
output