Wie man das Bash -Skript in Python ausführt
import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"
Cooperative Crab
import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"
#!/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