From a1838a1cc0211da5ea467de5b3e35dcfce661f75 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 11 Oct 2023 15:27:53 +0200 Subject: [PATCH] PORT CONSUMED TIME LOG --- 12345.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/12345.sh b/12345.sh index 440ca97b..a57cd4ce 100755 --- a/12345.sh +++ b/12345.sh @@ -137,22 +137,13 @@ while true; do mySalt | \ sed "s~http://127.0.0.1:12345~http://${myIP}:${PORT}~g" | \ sed "s~http://${myIP}:${PORT}~${myASTROPORT}/${PORT}~g" | \ - nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & + ( nc -l -p ${PORT} -q 1 > /dev/null 2>&1 && echo " (‿/‿) $PORT CONSUMED in "`expr $(date +%s) - $start`" seconds." ) & else mySalt | \ sed "s~http://127.0.0.1:12345~http://${myIP}:${PORT}~g" | \ - nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & + ( nc -l -p ${PORT} -q 1 > /dev/null 2>&1 && echo " (‿/‿) $PORT CONSUMED in "`expr $(date +%s) - $start`" seconds." ) & fi - #~ echo "$HTTPCORS - #~ - #~ - #~ [Astroport] :powered: Station - #~ - #~ - #~ DING : ${MOATS} : $(date)" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & - end=`date +%s` - echo " (‿/‿) $myHOST:$PORT / Execution time was "`expr $end - $start` seconds. continue fi