Edit by browser

This commit is contained in:
张冠群 2020-10-19 09:55:30 +08:00
parent e62a127ac4
commit bd7992d16d
1 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
#!/bin/bash
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" ]
then
echo "答案正确"
else
echo "答案错误"
fi