From 4ea1f28a73b99aea21afffebf15d625402220ffe Mon Sep 17 00:00:00 2001 From: xiaoshun Date: Thu, 30 May 2024 20:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 用户检测域名.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 用户检测域名.txt diff --git a/用户检测域名.txt b/用户检测域名.txt new file mode 100644 index 0000000..3e9f98e --- /dev/null +++ b/用户检测域名.txt @@ -0,0 +1,15 @@ +#!/usr/bin/bash +# +#by fuxiaoshun 3/30 + +read -p "请输入域名:" name +time=`date +%F:%H:%M:%S` +ping -c1 $name +if [ $? -eq 0 ];then + + echo "已通过,请查看/tmp/1.txt" + echo "通过时间已经记录" $time >>/tmp/1.txt + else + echo "不通过,请检查网络" + +fi \ No newline at end of file