append to logfile, do not truncate it
This commit is contained in:
parent
a2dbf25076
commit
03c1923e7e
@ -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
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user