Re: IPC and counters

2008-10-14 Thread Simon Wistow
On Wed, Oct 15, 2008 at 12:08:43AM +0100, me said: Tell a lie, what I want is Parent: my $id = $message->id; my $n = scalar(@children); my $sem = IPC::Semaphore->new(IPC_PRIVATE, 2, IPC_CREAT); $sem->setall(1, $n-1); foreach my $child (@children) { $chil

Re: RPC/RMI in Perl

2008-10-14 Thread Nigel Rantor
Kaoru wrote: On Tue, Oct 14, 2008 at 5:21 PM, Aaron Trevena <[EMAIL PROTECTED]> wrote: It sounds like you want CORBA rather than RPC/RMI given you're passing objects about rather than calling remote methods or procedures on objects that are in one place. Thanks, I'll take a look. If you want

Re: IPC and counters

2008-10-14 Thread Simon Wistow
On Tue, Oct 14, 2008 at 11:39:22PM +0100, Paul Makepeace said: > Isn't this exactly what semaphores are for? > > http://perldoc.perl.org/IPC/Semaphore.html > (http://en.wikipedia.org/wiki/Semaphores) Hah! The original subject of my post was "IPC and semaphores" but I changed it lest I do one of

Re: IPC and counters

2008-10-14 Thread Paul Makepeace
Isn't this exactly what semaphores are for? http://perldoc.perl.org/IPC/Semaphore.html (http://en.wikipedia.org/wiki/Semaphores) I'm sure you know all this so I suspect I've misread your question :-) P On Tue, Oct 14, 2008 at 11:21 PM, Simon Wistow <[EMAIL PROTECTED]> wrote: > > I have an IPC p

IPC and counters

2008-10-14 Thread Simon Wistow
I have an IPC problem. I have a parent process with a bunch of forked children. The parent sits in a loop waiting for messages and occasionally passes them onto the children which are also sitting in their own loops listening for messages and then doing stuff with them. Still with me? Now oc

Re: RPC/RMI in Perl

2008-10-14 Thread Kaoru
On Tue, Oct 14, 2008 at 5:21 PM, Aaron Trevena <[EMAIL PROTECTED]> wrote: > It sounds like you want CORBA rather than RPC/RMI given you're passing > objects about rather than calling remote methods or procedures on > objects that are in one place. Thanks, I'll take a look. > Either way it's worth

Re: RPC/RMI in Perl

2008-10-14 Thread Aaron Trevena
Hi Kaoru, It sounds like you want CORBA rather than RPC/RMI given you're passing objects about rather than calling remote methods or procedures on objects that are in one place. http://search.cpan.org/~otaylor/CORBA-MICO-0.6.0/MICO.pm Otherwise look at how you can the objects persistant somehow

RPC/RMI in Perl

2008-10-14 Thread Kaoru
Hey guys, I've been looking through CPAN for some sort of RPC/RMI (Remote Procedure Call/Remote Method Invocation) module that will let us pass objects and data structures from machine to machine via network connections. We're looking for something similar to the regular client-server module, exce

London.pm Dim sum Thursday 1pm: Golden Pagoda

2008-10-14 Thread Léon Brocard
Chinatown is so full of Chinese restaurants, so let's have another go at Golden Pagoda this London.pm dim sum is a social event where we meet up every Thursday at 1pm at a different Chinese restaurant, spend about an hour (and about £10) eating tasty dim sum (steamed and fried dumplings), then go

Re: perl script with iptables, problem

2008-10-14 Thread Leo Lapworth
2008/10/14 Davut Topcan <[EMAIL PROTECTED]>: > Hi folks, > > I downloaded a perl script, but I can't run... because I got an error > message , the message is below; > > linux-oo0m:/media/DAVUT/Projects/Odakk/QUEUE/countertrace-1.0 # > ./example-startup-script.sh > *Can't locate IPTables/IPv4/IPQueu

perl script with iptables, problem

2008-10-14 Thread Davut Topcan
Hi folks, I downloaded a perl script, but I can't run... because I got an error message , the message is below; linux-oo0m:/media/DAVUT/Projects/Odakk/QUEUE/countertrace-1.0 # ./example-startup-script.sh *Can't locate IPTables/IPv4/IPQueue.pm *in @INC (@INC contains: /usr/lib/perl5/5.10.0/x86_64-