ARTS-S shell script to achieve the cycle

#!/bin/bash

i=0
while [ "$i" != "100" ] && [ "$RESP" != "200" ]
do
    i=$(($i+1))
    echo $i
    RESP=`curl -I -m 10 -o /dev/null -s -w %{http_code} www.baidu.com`
done

Although very simple, we do not laugh a little add a little modification to achieve pitted unit testing service is available.

Guess you like

Origin www.cnblogs.com/zhouyang209117/p/11104963.html