append to logfile, do not truncate it

This commit is contained in:
sceox 2022-10-19 12:18:50 -07:00
parent a2dbf25076
commit 03c1923e7e

View File

@ -46,7 +46,7 @@ loop &
tail -f $inputf | delay | nc $server $port | while read msg tail -f $inputf | delay | nc $server $port | while read msg
do do
echo "$msg" | tee $logf echo "$msg" | tee -a $logf
case "$msg" in case "$msg" in
*'PING'*) echo "$msg" | sed 's/PING/PONG/' >> $inputf *'PING'*) echo "$msg" | sed 's/PING/PONG/' >> $inputf
;; ;;