Re: preventing concurrency between five different perl scripts

2016-02-24 Thread Kenneth Wolcott
On Wed, Feb 24, 2016 at 9:10 AM, Shawn H Corey wrote: > On Wed, 24 Feb 2016 18:47:09 +0200 > Shlomi Fish wrote: > >> Hello Kenneth, >> >> On Tue, 23 Feb 2016 18:34:54 -0800 >> Kenneth Wolcott wrote: >> >> > Hi; >> > >> > This seems like a very simple concept, but I'm not getting it, so >> > I'

Re: preventing concurrency between five different perl scripts

2016-02-24 Thread Shawn H Corey
On Wed, 24 Feb 2016 18:47:09 +0200 Shlomi Fish wrote: > Hello Kenneth, > > On Tue, 23 Feb 2016 18:34:54 -0800 > Kenneth Wolcott wrote: > > > Hi; > > > > This seems like a very simple concept, but I'm not getting it, so > > I'd like some help. > > > > So part of this is perl (not understa

Re: preventing concurrency between five different perl scripts

2016-02-24 Thread Shlomi Fish
Hello Kenneth, On Tue, 23 Feb 2016 18:34:54 -0800 Kenneth Wolcott wrote: > Hi; > > This seems like a very simple concept, but I'm not getting it, so > I'd like some help. > > So part of this is perl (not understanding readdir and/or glob well > enough) and part of it is not getting the log

Re: preventing concurrency between five different perl scripts

2016-02-23 Thread Atnakus Arzah
On Tue, Feb 23, 2016 at 06:34:54PM -0800, Kenneth Wolcott wrote: But where I run into trouble is the actual glob or readdir as $0 might be "./script1.pl" or "/full/path/to/script1.pl" or "script1.pl". Perhaps I should use basename? Perhaps a simple regex? I tried something similar with glob,

preventing concurrency between five different perl scripts

2016-02-23 Thread Kenneth Wolcott
Hi; This seems like a very simple concept, but I'm not getting it, so I'd like some help. So part of this is perl (not understanding readdir and/or glob well enough) and part of it is not getting the logic right. I have five perl scripts. I do not want any of them running concurrently a

RE: Concurrency problem

2003-01-28 Thread NYIMI Jose (BMB)
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

Re: Concurrency problem

2003-01-27 Thread Janek Schleicher
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

RE: Concurrency problem

2003-01-27 Thread david
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

RE: Concurrency problem

2003-01-27 Thread NYIMI Jose (BMB)
> -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

RE: Concurrency problem

2003-01-27 Thread Bob Showalter
> Any ideas about what to do in the Perl script to avoid concurrency > problems ? > > This is the script: > > > #!/usr/local/bin/perl > print "Content-type: text/xml\n"; > use CGI; > read(STDIN, $cadena, $ENV{'CONTENT_LENGTH'}); > > $cade

RE: Concurrency problem

2003-01-27 Thread Enric Roca
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

RE: Concurrency problem

2003-01-27 Thread NYIMI Jose (BMB)
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: Conc

RE: Concurrency problem

2003-01-27 Thread NYIMI Jose (BMB)
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

Concurrency problem

2003-01-27 Thread Enric Roca
to pipe2 and sent to App1. The process works fine, but we have detected an issue when more that one XML message is sent at the same time. The first message that arrives is well processed but the second message is lost. Any ideas about what to do in the Perl script to avoid concurrency problems

Re: Concurrency

2001-07-15 Thread Rocco Caputo
e it if someone would tell me otherwise >however. > >Is it safe to say that the Thread.pm module will be a safe and portable >way to do concurrency in future versions of perl? Right now I am using the >activestate perl which won't let me use threads because of ithreads or >s

Re: Concurrency

2001-07-09 Thread Ryan Boder
it safe to say that the Thread.pm module will be a safe and portable way to do concurrency in future versions of perl? Right now I am using the activestate perl which won't let me use threads because of ithreads or something. Basically I want this to run well on my windows and my linux syst

Re: Concurrency

2001-07-09 Thread Nigel Wetters
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 Pe

Re: Concurrency

2001-07-09 Thread Jos I. Boumans
> network connections in perl? I want it to be portable. I assume some > kind of concurrency would be needed but then again I havce only been > using perl for a week. > > Thanks, > Ryan > >

Concurrency

2001-07-08 Thread Ryan Boder
would be the best way to be able to both accept and initiate network connections in perl? I want it to be portable. I assume some kind of concurrency would be needed but then again I havce only been using perl for a week. Thanks, Ryan