slurm array job

C
sbatch --array=x-y submission.script
Source

Also in C: