It will wait. This behaviour is called "blocking". If you want to just start it and the go on in your code "non-blocking" or If you want to do some tasks "at the same time", you should take a look at fork, threads or easier Proc::ParallelLoop.
But If the bottleneck is your computingpower, this will not help you much. doing things at "the same time" works good as long as you have to wait for IO (Network, HDD, Human Interaction, Transfering Data...) or if you want to share performance between tasks. But in the 2nd case, the task will take n times + overhead longer then in a single task environment, but this is something that you might have to live with for example if you build multiuser db applications. (the users would kill you if there is only 1 queue for all of them.) There are perl moduls to make it easy to sharing performance look for semaphores, heaps and queues. Bye, B. Sharan Basappa <[EMAIL PROTECTED]> hat am 26. November 2008 um 16:13 geschrieben: > Hi, > > I am trying to launch a program using system command. > The program usually takes 20-30 minutes to complete. > I launch the programs in a loop. > Will the system command wait for first program to complete and then proceed > to the next one. > What if I want to launch these programs in parallel which is not > possible if system command waits for > the first program to complete before proceeding to next one. > > Regards, > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > >