Re: [Q] Simple shell script problem??

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

 



On Fri, 29 Jul 2005, mcclnx mcc wrote:

We have Redhat As 3.4 install ed on server.  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
set -v
echo $SHELL
export ORACLE_SID = CULNX

%./test1.sh
echo $SHELL
/bin/csh
export ORACLE_SID = CULNX
./test1.sh: line 4: export: `=': not a valid
identifier



look like "#!/bin/sh"  useless.  Program still use
"csh" to run it.

Any ideal?

Thanks.

Assuming you have Korn Shell installed, have you tried "#!/bin/ksh" instead?

--
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a message to:

site-update-request@xxxxxxxxxxxxxxxxx

with a message of:

subscribe

--
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