上传文件至 /

This commit is contained in:
xiaoshun 2024-05-30 20:49:15 +08:00
parent bb9210b803
commit 4ea1f28a73
1 changed files with 15 additions and 0 deletions

15
用户检测域名.txt Normal file
View File

@ -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