Edit by browser

This commit is contained in:
张冠群 2020-10-19 10:11:05 +08:00
parent bd7992d16d
commit 27f22f68a9
1 changed files with 10 additions and 2 deletions

View File

@ -1,11 +1,19 @@
#!/bin/bash
#/bin/sbin
sh /data/workspace/myshixun/step2/wenti.sh > 1.log 2>&1 &
curl -s http://cip.cc|awk -F '/' '/URL/{print $4}' > 2.log 2>&1 &
a=$(cat 1.log)
b=$(cat 2.log)
if [ "$a" = "$b" ]
FIND_FILE="/data/workspace/myshixun/step2/wenti.sh"
FIND_STR="ip.cip.cc"
if [ "$a" = "$b" ]
then
echo "答案正确"
if [ `grep -c "$FIND_STR" $FIND_FILE` -ne '0' ];then
echo "禁止使用ip.cip.cc"
else
echo "答案正确"
fi
else
echo "答案错误"