From a16f3942c3e59d26b6b6cdb69e097e86f451f182 Mon Sep 17 00:00:00 2001 From: phillmac Date: Fri, 4 Jun 2021 01:02:11 +0000 Subject: [PATCH] Mute ncat output --- scripts/functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 017a44c..96002ac 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -3,10 +3,10 @@ function serveQueue() { local queue_item - while read -r queue_item + while read -r queue_item do - echo -e "HTTP/1.1 200 OK\n\n ${queue_item}" | ncat -l -p "${LISTEN_PORT:-1500}" - done < <( + echo -e "HTTP/1.1 200 OK\n\n ${queue_item}" | ncat -l -p "${LISTEN_PORT:-1500}" >/dev/null + done < <( while : do echo "Fetching stale list" >&2