Parallel execution of a perl script

Discussion in 'Perl Misc' started by Jack, May 29, 2009.

  1. Jack

    Jack Guest

    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
     
    Jack, May 29, 2009
    #1
    1. Advertising

  2. Jack

    J. Gleixner Guest

    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...
     
    J. Gleixner, May 29, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    1,815
  2. Guest
    Replies:
    6
    Views:
    418
    Guest
    Apr 28, 2005
  3. Soren
    Replies:
    4
    Views:
    1,270
    c d saunter
    Feb 14, 2008
  4. Vivek Menon
    Replies:
    5
    Views:
    3,361
    Paul Uiterlinden
    Jun 8, 2011
  5. Vivek Menon
    Replies:
    0
    Views:
    1,774
    Vivek Menon
    Jun 10, 2011
Loading...

Share This Page