linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usage of pipes
@ 2004-11-23  5:54 Jagadeesh Bhaskar P
  2004-11-23  6:43 ` Glynn Clements
  2004-11-23  8:15 ` Justinas
  0 siblings, 2 replies; 3+ messages in thread
From: Jagadeesh Bhaskar P @ 2004-11-23  5:54 UTC (permalink / raw)
  To: linux-c-programming

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?


-- 
Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usage of pipes
  2004-11-23  5:54 usage of pipes Jagadeesh Bhaskar P
@ 2004-11-23  6:43 ` Glynn Clements
  2004-11-23  8:15 ` Justinas
  1 sibling, 0 replies; 3+ messages in thread
From: Glynn Clements @ 2004-11-23  6:43 UTC (permalink / raw)
  To: Jagadeesh Bhaskar P; +Cc: linux-c-programming


Jagadeesh Bhaskar P wrote:

> 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.

-- 
Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usage of pipes
  2004-11-23  5:54 usage of pipes Jagadeesh Bhaskar P
  2004-11-23  6:43 ` Glynn Clements
@ 2004-11-23  8:15 ` Justinas
  1 sibling, 0 replies; 3+ messages in thread
From: Justinas @ 2004-11-23  8:15 UTC (permalink / raw)
  To: Jagadeesh Bhaskar P; +Cc: linux-c-programming

On Tue, 23 Nov 2004 11:24:24 +0530
Jagadeesh Bhaskar P <jbhaskar@hclinsys.com> wrote:

> 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

> -- 
> Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-23  8:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-23  5:54 usage of pipes Jagadeesh Bhaskar P
2004-11-23  6:43 ` Glynn Clements
2004-11-23  8:15 ` Justinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).