Skip to content

Commit 67aed9b

Browse files
authored
Merge pull request #8 from StatFunGen/fix_parallel2
fix parallel jobs (again)
2 parents e64521e + f0248a5 commit 67aed9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate_job_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ${eof}
176176
177177
if [[ \$num_parallel_commands -gt 1 && \$(wc -l < \${cmd_script}) -gt 1 ]]; then
178178
echo "Running \$num_parallel_commands commands in parallel for \$(wc -l < \${cmd_script}) total commands."
179-
parallel -j \$num_parallel_commands ${no_fail_parallel} < \${cmd_script}
179+
cat \${cmd_script} | parallel -j \$num_parallel_commands ${no_fail_parallel}
180180
else
181181
echo "Running \$(wc -l < \${cmd_script}) commands in serial"
182182
bash \${cmd_script} ${no_fail}

0 commit comments

Comments
 (0)