Hi Ygor,
I'll have to dig it a little bit but it does exactly what I need!
One thing though: I'm feeding test_app with characters, so input.txt has 1 char per line. Works good. But once input.txt has been read, test_app keeps on getting the last character. How to avoid that?
And one more question: I thought that "somewhere" could be some kind of virtual device (bridge) that I could use this way:
$ test_app < bridge
and then:
$ echo v > bridge
$ echo f > bridge
And so on, using a script.
Am I dreaming?
Thanks for your help!