Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Post deleted by deepthi28



deepthi28
New User

Aug 28, 2012, 5:27 AM


Views: 8186
Post deleted by deepthi28

 


FishMonger
Veteran / Moderator

Aug 28, 2012, 6:40 AM


Views: 8184
Re: [deepthi28] Need to call same script twice in parallel with 2 different input files

Take a look at the Parallel::ForkManager module.
http://search.cpan.org/~dlux/Parallel-ForkManager-0.7.9/lib/Parallel/ForkManager.pm

Here are a few other choices.
http://search.cpan.org/search?query=fork+parallel&mode=all


deepthi28
New User

Aug 28, 2012, 10:19 PM


Views: 8179
Post deleted by deepthi28

 


FishMonger
Veteran / Moderator

Aug 29, 2012, 6:23 AM


Views: 8171
Re: [deepthi28] Need to call same script twice in parallel with 2 different input files

Since you haven't provided any info about your script or what you need to accomplish, it's hard to give any working suggestions.

If your script was written correctly, it would be able to accept multiple input files and act on each of them as needed.

Since it sounds like your script was not written to accept multiple input files, you could either rewrite it to fix that problem or write a wrapper script that executes your script as many times as needed. If you need them to run in parallel, then you could either use fork directly or one of the forking modules, or use the shell to execute each as a background process.