Penguin
Annotated edit history of ENOEXEC version 2, including all changes. View license author blame.
Rev Author # Line
1 JohnMcPherson 1 !!Exec Format Error
2
3 You tried to execute a file that is not in a valid executable format. The most common format for binary programs under linux is called [ELF]. Note that your shell will run ascii files that have the executable bit set as a shell script (ie run it as shell commands).
4
5 You can reproduce this by doing:
6 $ dd if=/dev/random of=myfile bs=1k count=1
7 $ chmod +x myfile
8 $ ./myfile
9 zsh: exec format error: ./myfile
10
11 Note that there is a very slight possibility that you could create a valid program that does something bad to your system!!
2 PerryLorier 12
13 Note, you can have user defined ways of running programs using Linux's binfmt_misc. See
14 /usr/src/linux/Documentation/binfmt_misc.txt