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'
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
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
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,
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
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
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
> 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
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: Conc
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
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
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
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
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
> 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
>
>
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
19 matches
Mail list logo