From 247ba502b1af8ad24a1e674c16b55cd6c2cf60c7 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 7 Dec 2022 00:18:36 +0100 Subject: [PATCH] port --- G1BILLETS.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/G1BILLETS.sh b/G1BILLETS.sh index 58621e2..3cff144 100755 --- a/G1BILLETS.sh +++ b/G1BILLETS.sh @@ -105,6 +105,8 @@ else ############## CLEAN START DEAMON MODE ### pidportinuse=$(ps axf --sort=+utime | grep -w "nc -l -p 33101" | grep -v -E 'color=auto|grep' | awk '{gsub(/^ +| +$/,"")} {print $0}' | tail -n 1 | cut -d " " -f 1) [[ $pidportinuse ]] && kill -9 $pidportinuse && echo "KILLING 33101 $pidportinuse" + pidportinuse=$(ps axf --sort=+utime | grep -w "nc -l -p 33102" | grep -v -E 'color=auto|grep' | awk '{gsub(/^ +| +$/,"")} {print $0}' | tail -n 1 | cut -d " " -f 1) + [[ $pidportinuse ]] && kill -9 $pidportinuse && echo "KILLING NOT COLLECTED THREAD $pidportinuse" ##################################################################### myIP=$(hostname -I | awk '{print $1}' | head -n 1) isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")