From a9f810575fcd54983e4a03dc85b87baedc4067f6 Mon Sep 17 00:00:00 2001 From: charlie-foxtrot Date: Wed, 28 Dec 2016 21:34:47 -0800 Subject: [PATCH] update dump978.sh to fix dump978-maint.sh and feed dump1090-mutability dump978-maint.sh starts up dump978 and pipes output to uat2json (that updates dump978.php) and is then piped to uat2esnt and netcat (to dump1090-mutability). However uat2json does not echo stdin to stdout output, meaning uat2esnt gets no input, and nothing makes it to dump1090-mutability. This changes dump978-maint.sh to bash and uses tee to fork dump978's output to both uat2json and uat2esnt so messages make it to dump1090-mutability. --- bash/decoders/dump978.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/decoders/dump978.sh b/bash/decoders/dump978.sh index d1e881a..3cce258 100755 --- a/bash/decoders/dump978.sh +++ b/bash/decoders/dump978.sh @@ -218,11 +218,11 @@ sudo chmod +w $LIGHTTPDDOCUMENTROOTDIRECTORY/dump978/data # Create the dump978 maintenance script. echo -e "\e[94m Creating the dump978 maintenance script...\e[97m" tee $DUMP978BUILDDIRECTORY/dump978-maint.sh > /dev/null <($DUMP978BUILDDIRECTORY/uat2json $LIGHTTPDDOCUMENTROOTDIRECTORY/dump978/data) | $DUMP978BUILDDIRECTORY/uat2esnt | /bin/nc -q1 127.0.0.1 30001 sleep 15 done EOF