2011-08-04 127 views

回答

1

可能不是最好的方式,但假設你在Linux/Unix環境下工作,你可以試試這個腳本。這將監視您的Weblogic啓動腳本的關鍵字(我選擇「在運行模式」)。

COUNTER=0 
while [ $COUNTER -le 5 ] 
do 
grep "started in RUNNING mode" <full path and name of log file> 
if [ $? -eq 0 ]; 
then 
     mail -s 'Server started' [email protected] </dev/null 
     break 
fi 
COUNTER=`expr $COUNTER + 1` 
sleep 6 
done