in reply to Simulating popen()

popen(3) is indeed available in Perl. It's just spelled o-p-e-n. Your standard open with a vertical bar at the beginning or the end maps to popen, effectively. And as I recall, the standard popen(3) was also one way or the other, and not both ways as you wanted.

So you wanted something beyond popen that does bidirectional opens. And the other messages in this thread are describing them to you, so I won't repeat that.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Simulating popen()
by jim_g (Initiate) on May 24, 2001 at 19:50 UTC

    Um, yeah, naturally after pressing the <submit> button I realised that what I really wanted to use was socketpair(), fork() and exec(), and now I'm romping away.

    Jim the Embarrassed