LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2005, 04:04 AM   #1
okeyla
Member
 
Registered: Nov 2004
Posts: 47

Rep: Reputation: 15
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.
 
Old 09-20-2005, 09:36 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"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

Last edited by jailbait; 09-20-2005 at 09:54 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a program to KDEwallet LinebackerACT SUSE / openSUSE 1 12-10-2005 03:07 PM
adding UI to a console program (with source) okeyla Linux - Newbie 1 09-22-2005 09:04 AM
Program received signal SIGPIPE, Broken pipe. grupoapunte Programming 1 06-03-2005 06:49 AM
adding a program as a service neverender Linux - Software 2 01-14-2004 06:29 AM
adding excel to a program clowns119 Programming 3 08-25-2003 06:52 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration