Piping keyboard input to two processes (or threads)
Hi there, I am trying to develope a sandbox (or testcase) scenario where I'd like user input by keyboard to be sent to two different programs (run on the same machine, but different ptys). However I am stuck on tring to figure out where to begin, and I was hoping some one here would be able to direct me.
The sandbox is basically aimed at running to instances of nano, and then opening up a third pty, running the program and be able to pipe the text into both instances of nano. Possible?
Any ideas on wether to look at threads or processes, and any specifics would be greatly apreaciated!
|