Re: ipc question

2011-12-16 Thread thebarn...@gmail.com
On Dec 14, 6:42 pm, oiss...@gmail.com (Tessio Fechine) 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..

you might want to state more information or show the code your having
trouble with


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: ipc question

2011-12-15 Thread Peter Scott
On Wed, 14 Dec 2011 20:42:10 -0300, Tessio Fechine wrote:
 I have a cgi application that has a two way communication with a ldap
 application via open2:
 
 I need to keep communicating with the same ldap.pl process as other cgi
 scripts are launched:

Sounds like you want a named pipe.

-- 
Peter Scott
http://www.perlmedic.com/ http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/certificates/perl-programming.php

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




ipc question

2011-12-14 Thread Tessio Fechine
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..


Re: ipc question

2011-12-14 Thread Shlomi Fish
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/




IPC Question

2001-11-04 Thread Veeraraju_Mareddi

open(WRITE, |notepad);
print WRITE Raju;

This should open a notepad and write Raju to the notepad. But its not doing
So


WHY??.

With Regards
Raju

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: IPC Question

2001-11-04 Thread nafiseh saberi

I think...
you should choose another name for filehandler...
it is a reserved world.
  _
  Best regards

  Try to always be hopefull

   www.iraninfocenter.net
www.electronegar.com
  www.sorna.net
   
- Original Message -
From: Veeraraju_Mareddi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 04, 2001 11:58 AM
Subject: IPC Question


 open(WRITE, |notepad);
 print WRITE Raju;

 This should open a notepad and write Raju to the notepad. But its not
doing
 So


 WHY??.

 With Regards
 Raju

 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]