title: How to submit/run multiple parallel jobs with Slurm/Sbatch?
body: <p>I am trying to submit a large number of jobs (several hundred) to a Slurm server and was hoping to avoid having to submit a new shell script for each job I wanted to run. The code submitted is a Python script that takes two input variables in the shell script and those variables are the only thing that changes between jobs. An example of a short shell script that works for a single job is:</p>
  <pre><code>#!/bin/bash
  
  #SBATCH -n 1
  #SBATCH -t 01:00:00
  
  srun python retrieve.py --start=0 --end=10
  </code></pre>
  <p>What I want is to submit a large number of jobs with the same python script and only change the 'start' and 'end' variables between jobs. I read something about just increasing the number of cores needed ('-n') and writing an &amp; symbol after each srun-command, but I've been unable to get it to work so far.</p>
  <p>If anyone knows a quick way to do this, I would appreciate the help a lot!</p>