LinuxCommandLibrary

sbatch

sbatch

TLDR

Submit a batch job

$ sbatch [path/to/job.sh]
copy


Submit a batch job with a custom name
$ sbatch --job-name=[myjob] [path/to/job.sh]
copy


Submit a batch job with a time limit of 30 minutes
$ sbatch --time=[00:30:00] [path/to/job.sh]
copy


Submit a job and request multiple nodes
$ sbatch --nodes=[3] [path/to/job.sh]
copy

Copied to clipboard