z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using the magic number

z/OS UNIX System Services User's Guide
SA23-2279-00

When a script file starts with #!, the kernel's spawn and exec services recognize the file name after the #! as the program to be run. For example, the z/OS UNIX file /u/userid/util1 contains the following in the start of the file:
#!  /u/userid/othershell
The kernel recognizes the magic number (#!) and runs /u/userid/othershell.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014