Submit a bash script to slurm. Slurm will schedule this bash script given the arguments presented in the script.
$ sbatch script.sh
Script example:
#! /bin/bash
#################### Batch Headers ####################
#SBATCH -p drcluster # Get it? DRC cluster ;)
#SBATCH -J hello_world # Custom name
#SBATCH -o results-%j.out # stdout/stderr redirected to file
#SBATCH -N 3 # Number of nodes
#SBATCH -n 1 # Number of cores (tasks)
#######################################################
python hello_world.py
sacct
or squeue
)%j
is job number)Environment variables: