Forrest logo
back to the sbatch tool

sbatch:tldr:21b15

sbatch: Submit a batch job with a custom name.
$ sbatch --job-name=${myjob} ${path-to-job-sh}
try on your machine

This command is using the "sbatch" command to submit a job script for execution in a batch scheduling system like SLURM. Here is a breakdown of the command:

  • "sbatch": This is the command used to submit a job to the batch scheduler.
  • "--job-name=${myjob}": This option is used to specify a name for the job. The value is provided by the variable "myjob", which should be defined before running the command.
  • "${path-to-job-sh}": This is the path to the job script file that you want to submit for execution. The actual location of the job script should be provided here.

In summary, this command submits a job script for execution in a batch scheduler, assigns a name to the job, and specifies 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