[Q] Simple shell script problem??
Ed Wilts
ewilts at ewilts.org
Thu Jul 28 23:29:10 UTC 2005
On Fri, Jul 29, 2005 at 05:06:47AM +0800, mcclnx mcc wrote:
> We have Redhat As 3.4 install ed on server.
For completeness sake, there is no 3.4. There is RHEL 3 Update 4.
> I am write i simple script and have problem happen.
>
> The user login shell is : CSH
>
> the program we try to ru will use : KSH
>
> %pg test1.sh
> #!/bin/sh
[snip]
> look like "#!/bin/sh" useless. Program still use
> "csh" to run it.
/bin/sh is actually a symbolic link to /bin/bash. If you want to run it
with ksh, you should change the first line to #!/bin/ksh.
--
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program
More information about the redhat-list
mailing list