One other pitfall if you're used to DOS, the current directory is NOT part of the path searched for executables (for security reasons). So you need to specify a path to run the script even if it's in the current directory. It can be a relative path, so this will do: ./somescript