#<%= @shell %> # ************************************************************************* echo "Starting the Weblogic NodeManager...." echo "Checking if the Weblogic NodeManager is already started...." unamestr=`uname` if [[ "$unamestr" == 'SunOS' ]]; then checkStmt='/usr/ucb/ps wwxa' else checkStmt='/bin/ps -eo pid,cmd' fi pid=`${checkStmt} | /bin/grep -i nodemanager.javahome | /bin/grep -v grep | awk '{print $1}'` if [ ${pid} ] then echo "The NodeManager is already running.. NodeManager NOT started again...." else echo "The NodeManager is not running yet.. Starting NodeManager now...." sleep 3 <%= @nodeMgrPath %>/startNodeManager.sh & sleep 5 pid=`${checkStmt} | /bin/grep -i nodemanager.javahome | /bin/grep -v grep | awk '{print $1}'` if [ ${pid} ] then echo "NodeManager is started with pid : $pid...." else echo "Error while starting NodeManager...." fi fi