Parallel execution of a perl script

J

Jack

Hi all,

I have a perl script that currently is performing a task in serial
fashion (in this case, emailing a list of users with dynamic content)
---> is there a way to run this in a more parallel fashion. One idea
I have is multiple scripts running, each managing which users it
emails (by opening a single list of email addresses in a file,
selecting and inserting some kind of "marker" to indicate a group of
people to email were 'processed' in the file itself, then close the
file, or something along these lines). I essentially want to split up
the task of email execution into a parallel mode instead of serial.

Just wondering how to get a script like this to really scale up while
working within the confines of Perl...if anyone has ideas, that would
be great.

Thanks,
Jack
 
J

J. Gleixner

Jack said:
Hi all,

I have a perl script that currently is performing a task in serial
fashion (in this case, emailing a list of users with dynamic content)
---> is there a way to run this in a more parallel fashion. [...]

Search for parallel at http://search.cpan.org/

or, to see how to to fork a process:

perldoc -f fork

or for a particular module

Parallel::ForkManager

or...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top