2011-08-04 7 views

答えて

1

ない最良の方法がありますが、このスクリプトを試みることができるのLinux/Unix環境で作業していると仮定。これにより、キーワード用のWeblogic起動スクリプトが表示されます( "RUNNINGモード"を選択しました)。

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 
関連する問題