“Ejecutar el script de Python del script bash” Código de respuesta

Cómo ejecutar el guión Bash en Python

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

Ejecutar el script de Python del 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

Respuestas similares a “Ejecutar el script de Python del script bash”

Preguntas similares a “Ejecutar el script de Python del script bash”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código