On Thu, 01 Dec 2011 12:38:56 -0500, Ryan.Barracuda wrote:
> I have 7 perl scripts that I want to run simultaneously from the command
> line with the possibility of growing this number. I'm pretty new to
> perl, so thought in the mean time it would be a good idea to create a
> perl script to run multiple scripts. I could just add to this file as
> needed if more scripts are created. What is the best way to do this?

Consider spawning code rather than programs and using 
Parallel::ForkManager:

http://search.cpan.org/~dlux/Parallel-ForkManager-0.7.9/lib/Parallel/
ForkManager.pm

-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/certificates/perl-programming.php

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to