
条件に基づいて停止tcpdump
またはループする必要があります。現在は を使用しています。tshark
break
while IFS= read -r line; do if [[ $line =~ 'some protocol' ]]; then echo $line; break; fi; done < <(sudo tcpdump)
または
while IFS= read -r line; do if [[ $line =~ 'some protocol' ]]; then echo $line; break; fi; done < <(sudo tshark)
どうすればメッセージが伝わらないのかUnable to write output: Broken pipe