(8)Exec format error: exec of '...' failed |
Usually this error message means one of two things:
The first two bytes of a file are used to determine how to execute the file. If those two bytes are #!, something special happens: The rest of the line is treated as the path to an executable to run the rest of the file. If those two bytes are not #!, then the system assumes it's a binary file and tries to execute it that way.