Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Parallel execution of a perl script

Reply
Thread Tools

Parallel execution of a perl script

 
 
Jack
Guest
Posts: n/a
 
      05-29-2009
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
 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      05-29-2009
Jack wrote:
> 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...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Parallel in, Parallel out shift register Vivek Menon VHDL 0 06-10-2011 10:15 PM
Parallel in, Parallel out shift register Vivek Menon VHDL 5 06-08-2011 03:56 PM
Parallel port control with USB->Parallel converter Soren Python 4 02-14-2008 03:18 PM
Parallel programming/execution C++ 6 04-28-2005 03:57 PM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57