This is pure sh question.
Is it possible to start app and redirect redirect output on demand?
For example I want to start app, redirect output to /dev/null untill I need to read it.
Then redirect it to fifo, read it, and redirect it back to /dev/null until next time I want to read output.
The app must be running all the time?
An alternative:
Is it possible to redirect app output to fifo, and keep fifo clean untill i want to read it, while at the same time app keeps spamming to fifo?
Perhaps it's possible with some special file? (reading mknod(8))
I hope it makes sense. If anything of this is possible, I would do miracles.
Is it possible to start app and redirect redirect output on demand?
For example I want to start app, redirect output to /dev/null untill I need to read it.
Then redirect it to fifo, read it, and redirect it back to /dev/null until next time I want to read output.
The app must be running all the time?
An alternative:
Is it possible to redirect app output to fifo, and keep fifo clean untill i want to read it, while at the same time app keeps spamming to fifo?
Perhaps it's possible with some special file? (reading mknod(8))
I hope it makes sense. If anything of this is possible, I would do miracles.