Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Parallel PL execution

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

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 20: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 22: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-28 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found