DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
How the LKP works

Running scripts

When any program is executed, the UnixWare 7 kernel looks at the first two characters of the file (the ``magic number'' header) to determine if it is a binary or a script. If the first two characters are #!, it is a script (shell, TCL, Perl, AWK or other script) that needs to be interperted by another program. The kernel then determines the absolute path of the script.

From UNIX mode:

From Linux mode:

These rules work well in most cases, but confusion can be caused by the following situations:
Previous topic: Running application binaries

© 2002 Caldera International, Inc. All rights reserved.
UnixWare 7 Release 7.1.3 - 17 October 2002