This is an old revision of the document!
Make a slurm allocation and run a program. The allocation is given up when the program ends.
salloc -n 10 srun hostname srun -n 5 hostname
Note: I couldn't get salloc to run a script even though the documentation says it will.