LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pipe for adding UI on console program (https://www.linuxquestions.org/questions/linux-newbie-8/pipe-for-adding-ui-on-console-program-365137/)

okeyla 09-20-2005 03:04 AM

pipe for adding UI on console program
 
Pipe is uni-direction.
If i establish 2 pipes for input and ouput of THE SAME console program,
is it a good idea for adding UI on console program?
( This idea is stupid but workable , isn't it? )

UI -> pipe1 -> console program
<- pipe2 <- the same console program

But , I don't know how to attach pipe1's output and pipe2's input to the same console program... >_<
Many examples in internet are just uni-direction.
Could someone give me an bi-direction usage example?

Thank you very much.

jailbait 09-20-2005 08:36 PM

"But , I don't know how to attach pipe1's output and pipe2's input to the same console program... >_<
Many examples in internet are just uni-direction.
Could someone give me an bi-direction usage example?"

I recommend you establish 2 pipes.

It is possible to create both half duplex and full duplex pipes. In my opinion the logic flow for two different half duplex pipes is easier than the logic flow for a full duplex pipe.

----------------------------
Steve Stites


All times are GMT -5. The time now is 04:03 PM.