I have a problem with the following code:
callBash.py:
import subprocess
print \"start\"
subprocess.call(\"sleep.sh\")
print \"end\"
Adding an answer because I was directed here after asking how to run a bash script from python. You receive an error OSError: [Errno 2] file not found if your script takes in parameters. Lets say for instance your script took in a sleep time parameter: subprocess.call("sleep.sh 10") will not work, you must pass it as an array: subprocess.call(["sleep.sh", 10])