3

Gnu parallel is a powerful tool that I use to run many independant BASH commands as a single set in parallel. I would like to be able to run the same commands SEQUENTIALLY without significant changes to the command I use. I know there is a switch to force the output to be returned as THOUGH run sequentially but I would like to have gnuparallel ACTUALLY RUN sequentially. My reason is for testing purposes on a machine which has a tendancy to overheat, solving my hardware issue is not an option, furthermore one could potentially imagine other testing regimes for which running gnuparallel sequentially would be useful.

So. Is there a way to simply run gnuparallel sequentially or would I need to manually unpack the gnuparallel command set into its component commands and run those in sequence?

Mr Purple
  • 455

1 Answers1

5

The parallel man page says that the --jobs option (same as -j, --max-procs and -P) specifies the number of jobs run in parallel. So, executing parallel with --jobs 1 should run your jobs in sequence.

garyjohn
  • 36,494