Slurm Script
A slurm script is used to run a set of slurm job steps. It can be submitted using sbatch
command.
Let’s try running following slurm script.
slurm.script
#!/bin/sh
#SBATCH --time=1
/bin/hostname
srun -l /bin/hostname
srun -l /bin/pwd
This script prints hostname of the node the script is scheduled and host names and pwd of nodes where other jobs will be run.
sbatch -n2 --output output.txt slurm.script