#!/bin/bash -l #SBATCH --job-name=test_job_array #SBATCH --ntasks=1 #SBATCH --mem-per-cpu=2G #SBATCH --time=00:20:00 #SBATCH --mail-user=user@uni-hannover.de #SBATCH --mail-type=BEGIN,END,FAIL #SBATCH --array=1-10,15,18 #SBATCH --output test_array-job_%A_%a.out #SBATCH --error test_array-job_%A_%a.err # Change to my work dir cd $SLURM_SUBMIT_DIR # Load modules module load my_module # Start my app srun ./my_app $SLURM_ARRAY_TASK_ID