kosie99 has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering what would be the best way to do the following: I have a script that I want to run on a number of files in a directory - once for each file found in parallel. When ALL these files are processed, I want a subsequent script to kick off. E.g:
for $f in $files { system("proc_script $f &"); } system("next_script");
What would be the best way to make sure all the proc_script processes completed fully before kicking off next_script? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best way to synchronise scripts
by Anonymous Monk on Jan 07, 2014 at 08:37 UTC | |
|
Re: Best way to synchronise scripts
by Anonymous Monk on Jan 07, 2014 at 14:23 UTC | |
|
Re: Best way to synchronise scripts
by Tanktalus (Canon) on Jan 09, 2014 at 05:07 UTC |