Parallel execution of a perl script

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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.


Re: Parallel execution of a perl script

Jack wrote:
Quoted text here. Click to load it

Search for parallel at

or, to see how to to fork a process:

perldoc -f fork

or for a particular module



Site Timeline