diff options
author | Erich Eckner <git@eckner.net> | 2021-05-16 19:44:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-16 19:44:36 +0200 |
commit | f95a4c28cc9909b271084fa209d4d3bdf373b333 (patch) | |
tree | a1b74e5112af3e68d66a565daf94a07c61a66bca /runjobsparallel.in | |
parent | f23133427797713e723a359daae58b8636c57cde (diff) | |
download | runjobsparallel-f95a4c28cc9909b271084fa209d4d3bdf373b333.tar.xz |
runjobsparallel.in: style
Diffstat (limited to 'runjobsparallel.in')
-rwxr-xr-x | runjobsparallel.in | 5 |
1 files changed, 4 insertions, 1 deletions
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 |