[Q] Simple shell script problem??
Mike Ault
mike at ault.cc
Thu Jul 28 21:14:47 UTC 2005
Don't those need to be cuddled up? (No spaces?)
#!/bin/sh
set -v
echo $SHELL
export ORACLE_SID=CULNX
-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of mcclnx mcc
Sent: Thursday, July 28, 2005 5:07 PM
To: redhat-list at redhat.com
Subject: [Q] Simple shell script problem??
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.
憟單祥蝬脰楝餉店隞颱
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list