检查网址是否正常访问
code
#!/bin/bash curl haiyou.tian-wang.com &> /dev/null if [ $? -eq 0 ]; then curl_ins_search=1 else curl_ins_search=0 fi echo $curl_ins_search
code
#!/bin/bash curl haiyou.tian-wang.com &> /dev/null if [ $? -eq 0 ]; then curl_ins_search=1 else curl_ins_search=0 fi echo $curl_ins_search