I think the problem is because I use -x so TCPLOG is not set, we don't
get in the test if [[ -n TCPLOG ]] and DTRST is never reset, so we keep
logging
Code:
--------------------
if [[ -n "$DTRST" ]]; then
# Append to the error log.
echo $DTOK $HOSTNAME.$IPLAST"_"$VerSign failed $DTNG reset $DTRST up $DTEND
`iwconfig $IFACE` `cat $PINGLOG` >> $ERRLOG
if [[ -n TCPLOG ]]; then
if [[ "$LOGLEVEL" -gt 3 ]]; then
echo "Sending wlanerr.log to $TCPLOG $TCPPORT"
fi
#if cat /etc/wlanerr.log | nc -w 3 $TCPLOG $TCPPORT # 0.4.2: log no
longer in /etc/, fails to send logs...!!!
if cat "$ERRLOG" | nc -w 3 $TCPLOG $TCPPORT
then
if [[ "$LOGLEVEL" -gt 3 ]]; then
echo "Send Successful"
fi
DTRST=
DTEND=
UploadStats
--------------------
------------------------------------------------------------------------
gomi's Profile: http://forums.slimdevices.com/member.php?userid=65458
View this thread: http://forums.slimdevices.com/showthread.php?t=111663
_______________________________________________
Radio mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/radio