title: Test ip is able to ping, but only one loop it ended.
body: <p>If i wants to enter a ip to ping, if it is able to ping, i wish to enter a difference ip. How am i going to change the script?
  Look at my script, if i enter ip 192.168.0.1 is able to ping, i wants to enter a different ip. HOw am i going to add. </p>
  
  <pre><code>echo "==============Ping IP=============="
  echo -n "Please enter ip to ping 192.168.0."
  read ipaddress
  Addip=192.168.0.$bmcipaddress
  echo "================================"
  echo "IP Add: $Addip"
  ping -c 1 $Addip &gt;"pinglog"
  ping_ok=`cat "pinglog"| grep Unreachable`
  echo "======="
  
  
  if [ "$ping_ok" == "" ]; then
          echo $bmcip "==&gt;ping PASS"
  else
          echo $bmcip "==&gt;ping BMC FAIL"
  
  
  
  fi
  </code></pre>