log_fn="$HOME/parallel-log.txt"

export FREECELL_SOLVER_QUIET=1
seq 1 4000000000 |
(
# lim=12000000
# lim=8500000
parallel -j8 --group --keep-order \
    bash run-single.bash 20000000 "{}"
) 2>&1 | tee -a "$log_fn"
echo 'Completed!' 1>&2
