Your input is appreciated !
José.
> -Original Message-
> From: david [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 8:16 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Concurrency problem
>
>
> Nyimi Jose wrote:
>
> >
> > #!/usr/b
On Mon, 27 Jan 2003 12:21:02 +0100, Enric Roca wrote:
I don't see any real concurrency problem in your script, but I'm also not
a concurrency expert. However, I believe, I can help you to write your
script more Perlish :-)
> This is the script:
>
>
> #!/usr/local/bin/perl
use strict;
use warni
Nyimi Jose wrote:
>
> #!/usr/bin/perl -w
> use strict;
> use Proc::ProcessTable;
> use File::Basename;
>
> my $is_running=&a_check_subroutine();
> sleep (60) if $is_running;#sleep 60 seconds
>
> sub a_check_subroutine{
> my $script=quotemeta File::Basename::basename($0);
> my $t = new Proc::Pro
> -Original Message-
> From: Enric Roca [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 4:09 PM
> To: NYIMI Jose (BMB); Beginners Perl
> Subject: RE: Concurrency problem
>
>
> José,
>
> Thanks for the info, but forget that I'm using pi
Enric Roca wrote:
> Hello,
>
> We are using Apache 1.3.26, Perl 5.5.3 and perl-cgi scripting to
> communicate to applications with XML. App1 calls the cgi script that
> is placed in the other machine. The script reads the XML message and
> pass it to pipe1. This message is processed by App2 and a
would solve my problem.
Regards,
Enric
- Mensaje original -
De: "NYIMI Jose (BMB)" <[EMAIL PROTECTED]>
Para: "Enric Roca" <[EMAIL PROTECTED]>; "Beginners Perl"
<[EMAIL PROTECTED]>
Enviado: lunes 27 de enero de 2003 15:09
Asunto: RE: Concurre
Also communicating applications via XML sounds like a job for SOAP ...
http://cookbook.soaplite.com/#soap%20cookbook
José.
> -Original Message-
> From: Enric Roca [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:21 PM
> To: Beginners Perl
> Subject: Concurrency problem
>
Sorry :) but your script seems not doing what you explained above.
I have the impression that your problem is not related to a concurrency problem.
Could you send a more detailed code, please?
José.
Anyway, here some reads from Perl Cookbook :
16.11. Making a Process Look Like a File with Named
In perl.beginners, you wrote:
>
>What I need to do is to have the application listening for connections
>while still allowing the user to do stuff. I am using IO::Socket and since
>the accept function blocks I think I have to use atleast 2 threads for
>this to happen. I would love it if someone wo
What I need to do is to have the application listening for connections
while still allowing the user to do stuff. I am using IO::Socket and since
the accept function blocks I think I have to use atleast 2 threads for
this to happen. I would love it if someone would tell me otherwise
however.
Is
Yep, using fork() will make your code less portable. If you want concurrency and don't
want to use fork(), you'll need to either experiment with threads (as suggested by
Jos), or build a multiplexed server using select(). One book I've found useful is
Network Programming with Perl by Lincoln D
All depends what you really need... if you want simply to have one script
send data to another script over a network, use IO::Socket
it will do exactly what you want...
however, if you're looking into threads, i can tell you that decent thread
support for perl will (hopefully) be available when 5.
12 matches
Mail list logo