source ~/.bash_profile
#!/bin/sh
WEBLOGIC_RESULT=`/bin/ps -el | /bin/grep WebLogic`
if [ "$WEBLOGIC_RESULT" = "" ] ; then
JAVA_RESULT=`/usr/bin/pgrep java`
if [ "$JAVA_RESULT" != "" ] ; then
KILLALLJAVA_RESULT=`/usr/bin/killall java`
if [ "$KILLALLJAVA_RESULT" = "" ] ; then
/usr/bin/nohup /WebLogic_12c/Middleware/user_projects/domains/base_domains/startWebLogic.sh > base_domain_WebLogic.log &
else
/usr/bin/nohup /WebLogic_12c/Middleware/user_projects/domains/base_domain/startWebLogic.sh > base_domain_WebLogic.log &
fi
else
/user/bin/nohup /We.....
fi
fi