Forrest logo
tool overview
On this page you find all important commands for the CLI tool sbatch. If the command you are looking for is missing please ask our AI.

sbatch

sbatch is a command line tool used in high-performance computing environments, specifically for job submission in the Slurm workload manager. It allows users to submit batch jobs to be executed on a cluster of computing resources, which can range from a few nodes to thousands of nodes. To use sbatch, users typically write a job script containing the necessary instructions to run their job, including the required resources, runtime, and executable to be executed. The sbatch command is then used to submit this job script to the Slurm scheduler, which manages the queue and allocates resources to each job. Users can also specify various options and parameters with sbatch to further customize their job submission and runtime environment. Once the job is submitted, sbatch assigns it a unique job ID and places it in the job queue, where it waits for available resources. Users can monitor the status of their job using commands like squeue or check the output and error logs generated by the job.

List of commands for sbatch:

  • sbatch:tldr:21b15 sbatch: Submit a batch job with a custom name.
    $ sbatch --job-name=${myjob} ${path-to-job-sh}
    try on your machine
    explain this command
  • sbatch:tldr:29388 sbatch: Submit a job and request multiple nodes.
    $ sbatch --nodes=${3} ${path-to-job-sh}
    try on your machine
    explain this command
  • sbatch:tldr:4a764 sbatch: Submit a batch job.
    $ sbatch ${path-to-job-sh}
    try on your machine
    explain this command
  • sbatch:tldr:dd0d0 sbatch: Submit a batch job with a time limit of 30 minutes.
    $ sbatch --time=${00:30:00} ${path-to-job-sh}
    try on your machine
    explain this command
tool overview