On Wed, 14 Dec 2011 20:42:10 -0300 Tessio Fechine <oiss...@gmail.com> wrote:
> Hello, > I have a cgi application that has a two way communication with a ldap > application via open2: > > |home.cgi| <===> |ldap.pl| > > > I need to keep communicating with the same ldap.pl process as other cgi > scripts are launched: > > |home.cgi| xxx |ldap.pl| <===> |admin.cgi| > > > I don't know how to do that. > Maybe if it were possible to open a pipe to a running application using > it's pid.. It's not really possible using open2. You may be able to get something more robust working by using socket communication (whether TCP/IP or Unix-domain-sockets) which allows for a single server serving multiple clients. You can look at http://perl-begin.org/uses/multitasking/ for more information. Otherwise, if you're communicating with a different perl program from an existing perl program, then you should consider encapsulating this functionality as a Perl module that will be used by two places. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://shlom.in/sussman There is no IGLU Cabal. The problem of founding an IGLU Cabal has been proven, in a surprise move, to be equivalent to the question of existence of God, fully‐tolerant religions and NP‐complete oracles. — Omer Zak Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/