“Execute o comando linux em python” Respostas de código

Como executar o comando Linux em Python

import os
cmd = 'your command here'
os.system(cmd)
Pinksheep

Execute o comando linux em python

import subprocess
subprocess.call("command1")
subprocess.call(["command1", "arg1", "arg2"])
Sachin

Respostas semelhantes a “Execute o comando linux em python”

Perguntas semelhantes a “Execute o comando linux em python”

Mais respostas relacionadas para “Execute o comando linux em python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código