 <p>In order for a shell script to be called like a binary, it needs a 'hashbang' as the first line of the file:</p> <pre><code>#!/bin/bash </code></pre> <p>which tells the OS which interpreter to use for the script. Without it the OS will get confused about what to do with the file, giving you the error you've seen.</p>