From 4725bafb3592fa1cb898e54a97b8a14f608d2e1b Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 6 Sep 2016 19:27:45 +0200 Subject: [PATCH] Improved ParallelExec --- dev/ofunctions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 2999b0e..1a2acbe 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -726,6 +726,7 @@ function WaitForTaskCompletion { # Take a list of commands to run, runs them sequentially with numberOfProcesses commands simultaneously runs # Returns the number of non zero exit codes from commands +# Use cmd1;cmd2;cmd3 syntax for small sets, use file for large command sets function ParallelExec { local numberOfProcesses="${1}" # Number of simultaneous commands to run local commandsArg="${2}" # Semi-colon separated list of commands, or file containing one command per line