Re: Launching eb-lite from perl with open2

Meredydd <[email protected]> Fri, 5 Mar 2004 14:37:32 +0000
Newsgroups gmane.network.everybuddy.user
Message-ID <[email protected]>
Hey there,

	I'm afraid that, although writing to the core's stdin could work, it 
will occasionally spew on stdout and stderr, which will really cut you 
up. I seem to remember reading of a way of starting processes with 
arbitrary descriptors in Perl, though...it's been ages, but I do think 
that it's possible... Failing that, of course, you could always launch 
through sh, which definitely supports redirecting arbitrary 
descriptors.

Meredydd

On Friday 05 March 2004 14:13, Esteban Fernandez Stafford wrote:
> Hi,
>
> I have been trying to start instances of eb-lite from perl in various
> ways. And, at the moment, I am most happy with the open2 method that
> starts a process and gives me a read handle to the process output and
> a write handle to its input. The only problem with eb-lite is that
> the --pipes N M option does not let me set N=0. I changed the main.c
> file as follows. This should allow connecting a read pipe to stdin(0)
> or connecting a write pipe to stdout(1) or stdout(2)