LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03: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, 08:36 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"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 08:54 PM.
 
  


Reply



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 02:07 PM
adding UI to a console program (with source) okeyla Linux - Newbie 1 09-22-2005 08:04 AM
Program received signal SIGPIPE, Broken pipe. grupoapunte Programming 1 06-03-2005 05:49 AM
adding a program as a service neverender Linux - Software 2 01-14-2004 05:29 AM
adding excel to a program clowns119 Programming 3 08-25-2003 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 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
Open Source Consulting | Domain Registration