webtest.sh 很不错的WEB服务器压力测试脚本(4)

发表于:2012-04-16来源:linux安全网作者:zhaoyun00点击数: 标签:压力测试
if [ $? -eq 0 ] ; then echo 1 whstat break fi #13$# # fi #13$# else if [ $NUMBER -lt $MAXNUMBER ] ; then LINE=`wc -l test.logwhile |awk {print $1}` #19^# if [ $LINE -gt $NUMBER ] ; then grep fail test

  if [ $? -eq 0 ] ; then

  echo 1 > whstat

  break

  fi

  #13$#

  # fi

  #13$#

  else

  if [ $NUMBER -lt $MAXNUMBER ] ; then

  LINE=`wc -l test.logwhile |awk '{print $1}'`

  #19^#

  if [ $LINE -gt $NUMBER ] ; then

  grep fail test.logwhile | wc -l |awk '{print $1}' >fail

  grep ok test.logwhile |wc -l |awk '{print $1}' >succok

  wc -l test.logwhile |awk '{print $1}' > sum

  echo 1 > whstat

  break

  fi

  #19$#

  fi

  #17$#

  fi

  #18$#

  done

  done

  fi

#3$# 效果图

原文转自:http://www.ltesting.net