I want to store the stdout from a process into a buffer and have the buffer emptied once read, FIFO style.
I know that I can pipe the stdout, but the pipe/file will keep growing and contain data that I have already read. I just want the fresh data.
command > named_pipe &
Are there any other inbuilt methods, similar to a buffer in a network socket, that I can redirect data to?