Wondering why this script is getting hung up. I have checked the path for ksh but it appears that my lines are DOA.
here is the error log:
+ echo /usr/bin/sh
/usr/bin/sh
+ export ORACLE_SID=EMSEUWEB
/u02/app/EMSEUWEB/scripts/start_app.sh: ORACLE_SID=EMSEUWEB: is not an identifier
here is the script:
set -x
#!/bin/ksh
# Script: start_ems
######################################################
CHK=`cat /tmp/backup`
##########################################################
echo $SHELL
export ORACLE_SID=EMSEUWEB
. /u01/app/oracle/admin/envfiles/ORACLE.env
. /u01/app/oracle/admin/envfiles/$ORACLE_SID.env
###################################################
if [ "${CHK}" = "done" ]
then
/usr/local/bin/sudo nohup /opt/WebSphere/AppServer/bin/startupServer.sh &
# --- start TradeSphere Application Server
/u02/app/EMSEUWEB/TradeSphere72/scripts/ts_start.sh
# ---- Start EMS Application
/u02/app/EMSEUWEB/scripts/startenv.ksh
/u02/app/EMSEUWEB/scripts/startems.ksh
else
print "hello"
exit
here is the error log:
+ echo /usr/bin/sh
/usr/bin/sh
+ export ORACLE_SID=EMSEUWEB
/u02/app/EMSEUWEB/scripts/start_app.sh: ORACLE_SID=EMSEUWEB: is not an identifier
here is the script:
set -x
#!/bin/ksh
# Script: start_ems
######################################################
CHK=`cat /tmp/backup`
##########################################################
echo $SHELL
export ORACLE_SID=EMSEUWEB
. /u01/app/oracle/admin/envfiles/ORACLE.env
. /u01/app/oracle/admin/envfiles/$ORACLE_SID.env
###################################################
if [ "${CHK}" = "done" ]
then
/usr/local/bin/sudo nohup /opt/WebSphere/AppServer/bin/startupServer.sh &
# --- start TradeSphere Application Server
/u02/app/EMSEUWEB/TradeSphere72/scripts/ts_start.sh
# ---- Start EMS Application
/u02/app/EMSEUWEB/scripts/startenv.ksh
/u02/app/EMSEUWEB/scripts/startems.ksh
else
print "hello"
exit