Forrest logo
back to the sbatch tool

sbatch:tldr:29388

sbatch: Submit a job and request multiple nodes.
$ sbatch --nodes=${3} ${path-to-job-sh}
try on your machine

This command is used to submit a job script to a Slurm job scheduler.

The sbatch command is used to submit the job script.

--nodes=${3} is an option passed to sbatch that specifies the number of nodes to be requested for the job. The value of ${3} is a parameter that needs to be provided when executing this command. It is expected to hold the desired number of nodes for the job.

${path-to-job.sh} is the path to the job script file that needs to be executed. The job script file usually contains instructions and commands to be executed by the job scheduler.

So, overall, this command is submitting a job script to the Slurm job scheduler, specifying the number of nodes to be used for the job, and providing the path to the job script file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sbatch tool