Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Parallel PL execution

by jpavus (Novice)
on Feb 23, 2002 at 14:57 UTC ( [id://147096]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

jpavus has asked for the wisdom of the Perl Monks concerning the following question:

My first time here and I just want to post a question. How can the parallel processing be done. e.g. 5 .pl executables and I want to run them at the same time and have a status of each and one of them whenever they finish. It will produce a file on each executables and then be rolled up in one. They will also access the oracle DB. OR Have one pl executable with parallel processing or ORAPERL cursors. It is possible to achieve a parallel queries in ORACLE but its to much hassle because of partitions and stuff than having a script that runs simultaneously. thanks

Replies are listed 'Best First'.
Re: Parallel PL execution
by Zaxo (Archbishop) on Feb 23, 2002 at 15:39 UTC

    What you want is doable with fork or and wait. You will want to call wait in list context so you can examine exit status. POSIX.pm, from the standard perl distribution, is invaluable for fine-tuning the children's environment.

    Super Search for fork and wait will land you plenty of advice to get you started.

    After Compline,
    Zaxo

Re (tilly) 1: Parallel PL execution
by tilly (Archbishop) on Feb 23, 2002 at 17:22 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://147096]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.