Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: calling sql from korn shell script
On Fri, 07 Oct 2005 15:42:18 -0700, William Robertson interested us by
writing:
> I'm also puzzled about why I so often see #!/bin/ksh at the top of
> Bourne shell scripts.
Bottom line is that #! in column 1 of line 1 is interpreted as the 'magic number' for an executable, and the program used immediately after the magic number is interpreted as the shell to be used for the script.
IOW, what you are seeing are not Bourne scripts, but Korn scripts. The /bin/ksh does an immediate switch. For more info, man execve(2)
-- Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries ***Received on Fri Oct 07 2005 - 18:55:07 CDT
![]() |
![]() |