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!
In reply to Best way to synchronise scripts by kosie99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |