I recently tried to call a „bash“ script (actually it just was rather a batch script with some commands) out of a python script:
subprocess.call("/home/tux/bin/foo.sh")
Unfortunately, it did not work:
OSError: [Errno 8] Exec format error
The problem was, that foo.sh missed the „shebang-line“
#!/bin/bash [...]