From fc870854e226892a8e5bb49c492d08b2e98cb52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=86=A0=E7=BE=A4?= Date: Mon, 19 Oct 2020 10:12:29 +0800 Subject: [PATCH] Edit by browser --- step2/2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/step2/2.sh b/step2/2.sh index 1b360a6..804c4b2 100644 --- a/step2/2.sh +++ b/step2/2.sh @@ -1,10 +1,10 @@ #!/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 & +sh /data/workspace/myshixun/step2/wenti.sh > /root/1.log 2>&1 & +curl -s http://cip.cc|awk -F '/' '/URL/{print $4}' > /root/2.log 2>&1 & -a=$(cat 1.log) -b=$(cat 2.log) +a=$(cat /root/1.log) +b=$(cat /root/2.log) FIND_FILE="/data/workspace/myshixun/step2/wenti.sh" FIND_STR="ip.cip.cc" if [ "$a" = "$b" ]