I have a problem with the following code:
callBash.py:
import subprocess print \"start\" subprocess.call(\"sleep.sh\") print \"end\"
Make sure that sleep.sh has execution permissions, and run it with shell=True:
sleep.sh
shell=True
#!/usr/bin/python import subprocess print "start" subprocess.call("./sleep.sh", shell=True) print "end"