CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

Post #1 of 4 (4037 views)
Post deleted by deepthi28

 


FishMonger
Veteran / Moderator

Aug 28, 2012, 6:40 AM

Post #2 of 4 (4035 views)
Re: [deepthi28] Need to call same script twice in parallel with 2 different input files [In reply to] Can't Post

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

Post #3 of 4 (4030 views)
Post deleted by deepthi28 [In reply to]

 


FishMonger
Veteran / Moderator

Aug 29, 2012, 6:23 AM

Post #4 of 4 (4022 views)
Re: [deepthi28] Need to call same script twice in parallel with 2 different input files [In reply to] Can't Post

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.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives