> Message du 26/11/08 16:13 > De : "Sharan Basappa" > A : "Perl Beginners" > Copie à : > Objet : system command > > > 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. >
Could use a fork. while( ... ) { unless (fork) { system(...); # in child exit 0; } } see perldoc -f fork. -- Jeff Pang http://home.arcor.de/pangj/ Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.