public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Rode <Martin.Rode@programmfabrik.de>
To: linux-kernel@vger.kernel.org
Subject: Question about bi-directional pipes.
Date: Tue, 08 Jan 2002 09:47:06 +0100	[thread overview]
Message-ID: <3C3AB20A.8B16C23A@programmfabrik.de> (raw)

I was just wondering if it is possible under Linux to use popen in a
bi-directional way? I want to use popen under php and must write _and_
read from and to the pipe. Some guy at the php mailing list stated that
this is possible to do with BSD, he wasn't sure about linux.

If this is a kernel issue and not a glibc one, is there a way to get
popen work bi-directionally under linux? Say I want a 

pipe = popen ('somefile', 'w+');

return a valid pipe. As it is now, popen (at least under php, but I
think this should be the same), does not return a handle for mode 'w+'.
It does return a handle only for modes 'r' and 'w'.

Regards,

;Martin


-- 
Dipl.-Kfm. Martin Rode
martin.rode@programmfabrik.de

Programmfabrik GmbH
Frankfurter Allee 73d
10247 Berlin

http://www.programmfabrik.de/

Fon +49-(0)30-4281-8001
Fax +49-(0)30-4281-8008
Funk +49-(0)163-5321400

             reply	other threads:[~2002-01-08  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-08  8:47 Martin Rode [this message]
2002-01-08 11:52 ` Question about bi-directional pipes Chris Wedgwood
  -- strict thread matches above, loose matches on Subject: below --
2002-01-08 15:23 Jesse Pollard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C3AB20A.8B16C23A@programmfabrik.de \
    --to=martin.rode@programmfabrik.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox