Skip to contentSkip to conversation

usage of pipes

DISCUSSION Jagadeesh Bhaskar P 3 participants 3 messages Nov 23, 2004

lore
Share & tools
lore
#0 lore raw

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]>
#1 lore raw
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]>
#2 lore raw
In reply to Jagadeesh Bhaskar P
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