Re: [Q] Simple shell script problem??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux