On Wed, 2008-11-26 at 20:43 +0530, Sharan Basappa wrote: > 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.
The system command waits for the process to complete and returns its status. To launch programs in parallel, in Linux, you use fork() and exec(). For Windows, one of the Win32:: modules. I don't do Windows, so someone else must answer this. See: perldoc -f system perldoc -f fork perldoc -f exec -- Just my 0.00000002 million dollars worth, Shawn The key to success is being too stupid to realize you can fail. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/