#!/bin/bash httpcode(){ a=("`curl -I -s -o /dev/null -w "%{http_code}\n" http://$1`") echo $a if [ $a -lt 400 ];then echo "runing" else echo "stop" fi } Last modification:July 22, 2019 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏