Hi we have weblogic deployed under Linux Enterprise 5 .
Now i want to write a script that checks if weblogic is running or not
I have found that weblogic uses Java as process .
Can i do this way :
my Script File :
Echo Checking Status
if [ps -ef | grep java ]
then
echo Server Running
else
echo Server Not Running Do Something
fi
Please correct me if i am wrong .