Gowthaman Ramasamy wrote:
I have a lengthy Perl script running on a 4 processor machine. At
one point of time i have to execute four shell commands / mysql
quries from four different batch files. Currently i run them one
after other. Can i use fork at this place so that i can fire all 4
mysql quries simultaneously and collect the results back to main
process.

I believe that the CPAN module Parallel::ForkManager might be useful in this case.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to