Edit by browser
This commit is contained in:
parent
e62a127ac4
commit
bd7992d16d
11
step2/2.sh
11
step2/2.sh
|
@ -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
|
Loading…
Reference in New Issue