Why Use the Magic Number in Qshell Scripts?
March 17, 2004 Hey, Ted
I have not worked with Unix, so Qshell is a new adventure for me. I am curious about the “magic number,” the #! comment that shell scripts typically begin with. It appears to me that Qshell doesn’t care whether you include the comment. Is that true? If so, is there a reason why I should include the magic number?
–Jim
It’s true. Take a look at the process Qshell goes through to execute a script.
When you type a script name and press Enter, Qshell starts a new job and asks the system to run the script. The system reads