squeue
sacct # https://slurm.schedmd.com/sacct.html
salloc
sattach
sstat
scontrol
sinfo
smap
strigger
sview
sbatch # https://slurm.schedmd.com/sbatch.html
sbcast
srun
scancel
```Bash #!/bin/bash #SBATCH –job-name=some_test_script #SBATCH –comment=This.is.a.test.script #SBATCH –time=00:05:00 #SBATCH –ntasks=4 #SBATCH –mincpus=4 #SBATCH –mem=1G #SBATCH –qos=dev #SBATCH –tmp=1gb #SBATCH –mem-per-cpu=250 #SBATCH –arrayt=1-8
#module purge #module load R
echo $SLURM_NTASKS echo “test” > test{$SLURM_JOB_ID}.out echo “tmp will be removed” > ${TMPDIR}/tmp{$SLURM_JOB_ID}.out
srun ./my_program $SLURM_ARRAY_TASK_ID