Hi Team,
Iam trying to execute few scripts Initial scripts runs with root then it calls its few subscripts to be run as non-root user, but cannnot able to do so , the script is starting by root user itself can somebody please help on this.
Quote:
Content of Initial script which calls other script to run as non root user
#################start managed server as oracle
/bin/su oracle -c 01startoidservers.sh
sleep 10
|
Content of the script called by Initial script to be run as non root user
Quote:
#######Starting OID service###############
cd /scratch/app/product/fmw/asinst_1/bin
./opmnctl startall
sleep 120
./opmnctl status -l > /tmp/opmnstatus_start_status.log
#######starting OID Admin SERVER#####################
cd /scratch/app/product/fmw/user_projects/domains/IDMDomain/bin
nohup ./startWebLogic.sh &
sleep 200
#######starting OID Managed SERVERs#####################
nohup ./startManagedWebLogic.sh wls_ods1 > wls_ods11.log &
sleep 60
exit
|