shell web Condition Monitoring

test_pkg(){
  echo "Test"
  shell_log "Test"
  STATUS=$(curl -s --head http://www.baiduasdfasdfasdf.com | grep '200' | wc -l)
  if [ $STATUS = 1 ];then
  echo "OK"
  else
  exit;
  be
  }

Guess you like

Origin www.cnblogs.com/cheyunhua/p/12145098.html