usage of pipes
Hi,
I created a pipe in a program. Now i want to write through that to another program. Is it possible?
Or putting it in other words, can I communicate with a pipe (and not a named pipe or FIFO), between 2 entirely independent processes?
Signature · 1 line
Jagadeesh Bhaskar P <[email protected]>
Quoted 4 lines · Jagadeesh Bhaskar P
I created a pipe in a program. Now i want to write through that to another program. Is it possible?
Or putting it in other words, can I communicate with a pipe (and not a named pipe or FIFO), between 2 entirely independent processes?
The other process needs a descriptor for the other end of the pipe.
AFAIK, there are only two ways to achieve this: either both processes must have a common ancestor which creates the pipe, or the processes must communicate via a Unix-domain socket so that the creator can send the descriptor using sendmsg() with an SCM_RIGHTS message.
Signature · 1 line
Glynn Clements <[email protected]>
Quoted 8 lines · On Tue, 23 Nov 2004 11:24:24 +0530 Jagadeesh Bhaskar P <[email protected]>…
Hi,
I created a pipe in a program. Now i want to write through that to another program. Is it possible?
Or putting it in other words, can I communicate with a pipe (and not a named pipe or FIFO), between 2 entirely independent processes?
Helo.
Here are some info on this topic:
http://www.gnu.org/software/libc/manual/html_node/Pipes-and-FIFOs.html
Quoted 8 lines
Signature · 6 lines
Jagadeesh Bhaskar P <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html