now the birdnet_analysis waits for the socket

This commit is contained in:
mcguirepr89
2022-02-11 14:37:28 -05:00
parent c98cd4dad7
commit 4724b1781f
+6
View File
@@ -124,6 +124,12 @@ run_analysis() {
done
fi
if ! grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;then
echo "Waiting for socket"
until grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;do
sleep 1
done
fi
if [ -f ${1}/${i} ] && [ ! -f ${INCLUDE_LIST} ] && [ ! -f ${EXCLUDE_LIST} ] && [ -z $BIRDWEATHER_ID ];then
echo "python3 analyze.py \
--i "${1}/${i}" \