Forrest logo
back to the sbatch tool

sbatch:tldr:4a764

sbatch: Submit a batch job.
$ sbatch ${path-to-job-sh}
try on your machine

This command submits a job script (job.sh) to the Slurm workload manager using the sbatch command. The actual path to the job.sh script is provided by the ${path-to-job-sh} variable, which needs to be substituted with the appropriate file path.

When the sbatch command is executed with the path to the job script, Slurm registers the job for execution and assigns it appropriate resources according to the specifications mentioned within the job script. The job will be queued until the required resources become available, and then it will be executed on the allocated compute nodes.

Overall, this command is used to submit a job script to the Slurm workload manager for asynchronous execution.

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