Yesterday, I wrote and ran a python script which executes a shell using subprocess.Popen(command.split()) where command is string whic
script
shell
subprocess.Popen(command.split())
I solved this by putting this line at the top of the called shell script:
#!/bin/sh
That will guarantee that the system always uses the correct interpreter when running your script.