Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2003 18:31:53 +1100
From:      Stanley Hopcroft <Stanley.Hopcroft@IPAustralia.Gov.AU>
To:        Mike Tancsa <mike@sentex.net>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: network audit of sendmail
Message-ID:  <20030307183148.A243@IPAustralia.Gov.AU>
In-Reply-To: <5.2.0.9.0.20030306174416.05ea4650@marble.sentex.ca>; from mike@sentex.net on Thu, Mar 06, 2003 at 05:45:53PM -0500
References:  <5.2.0.9.0.20030306094902.06e759a8@marble.sentex.ca> <5.2.0.9.0.20030306094902.06e759a8@marble.sentex.ca> <20030306203713.GA14778@nessus.org> <5.2.0.9.0.20030306174416.05ea4650@marble.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Dear Sir,

dLUx (?)s CPAN module Parallel::ForkManager is a _neat_ way of running a
lot of Perl programs in parallel.

No need to wait etc since this is done by the module.

From the synopsis,

         use Parallel::ForkManager;

         $pm = new Parallel::ForkManager($MAX_PROCESSES);

         foreach $data (@all_data) {
           # Forks and returns the pid for the child:
           my $pid = $pm->start and next;

           ... do some work with $data in the child process ...

           $pm->finish; # Terminates the child process
         }

I use it to do a whole bunch of snmpwalks of switch bridge tables.

HTH,


Yours sincerely.


-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030307183148.A243>