“Execute script python do script Bash” Respostas de código

Como executar scripts bash em python

import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"
Cooperative Crab

Execute script python do script Bash

#!/bin/bash

# using the full path of the 'python3' command is not necessary but should used.
# you can get your full path of the python command by running `which python3`
/usr/bin/python3 python_script.py
Powerful Puma

Respostas semelhantes a “Execute script python do script Bash”

Perguntas semelhantes a “Execute script python do script Bash”

Procure respostas de código populares por idioma

Procurar outros idiomas de código