From f95a4c28cc9909b271084fa209d4d3bdf373b333 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 16 May 2021 19:44:36 +0200 Subject: runjobsparallel.in: style --- runjobsparallel.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runjobsparallel.in b/runjobsparallel.in index 1e5648c..e567d20 100755 --- a/runjobsparallel.in +++ b/runjobsparallel.in @@ -20,7 +20,10 @@ for file in ./*; do if [ -f $file ] && [ -x $file ]; then i=${#errFiles[@]} errFiles[${i}]="${tmpDir}/err.${i}" - (nice -n 19 $file; echo $? > "${errFiles[${i}]}")& + ( + nice -n 19 $file + echo $? > "${errFiles[${i}]}" + )& pids[${i}]=$! fi done -- cgit v1.2.3-70-g09d2