FIND_FILE=$1
echo $FIND_FILE
FIND_STR=$2
echo $FIND_STR
echo java -version
RES=cat $FIND_FILE |grep $FIND_STR |wc -l
echo $RES
if [ ${RES:=0} -ge 0 ];then
echo “Have STR”
exit
fi
echo ‘abcdef’
PROC_NAME=$3
echo $PROC_NAME:=“mnm” 111111111111111111
PROCESS_ID=ps -ef|grep $PROC_NAME| grep -v grep |awk '{print $2}'
echo $PROCESS_ID 1212
if [${PROCESS_ID:=0} -le 0];then
echo $PROCESS_ID “not FOUND”
exit
fi
echo “Finished…”