Re: Launching eb-lite from perl with open2

Esteban Fernandez Stafford <[email protected]> Wed, 10 Mar 2004 12:24:31 +0100 (CET)
Newsgroups gmane.network.everybuddy.user
Message-ID <[email protected]>
Hello again,

you don't happen to have the sh launching code at hand. I have been
trying with perl but I just don't know what I am doing wrong...
Perhaps if I can see (and understand ;) the mechanism under sh I can
port it to perl...

                           S             t          e      p    h  e n!
:wq

On Fri, 5 Mar 2004, Meredydd wrote:
> 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.
> 
> 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)
>