Hi folks, I need to pipe the results of this:
which look like this:
into a networking utility, such as netcat or sendOSC (I'm receiving the results in Puredata). When I try to run somthing like
I get no output from tshark shown, though when I cancel the tshark scan I had definitely captured packets. Anyone know why this is? asked 14 Mar '15, 03:22 youcloudsofddom |
One Answer:
Just like you need to make tshark line-buffered, you also need to make sed line-buffered for data to pass through the pipes real-time. Add See this great article on the use of buffers while piping output. Just found it by googling, so thank you for your question ;-) answered 14 Mar '15, 03:48 SYN-bit ♦♦ |
Ah, thank you again SYN-bit! That article was very useful - turns out what was needed was stdbuf -oL in with the sed command. Didn't even know that pipe had those issues. Thanks for all your help!