Forrest logo
back to the qsub tool

qsub:tldr:2ba93

qsub: Submit a script that is executed on 2 nodes using 4 cores per node.
$ qsub -l nodes=${2}:ppn=${4} ${script-sh}
try on your machine

The command qsub -l nodes=${2}:ppn=${4} ${script-sh} is used to submit a job to a job scheduler, typically found in high-performance computing (HPC) environments.

Here is a breakdown of the components of the command:

  1. qsub: This is the command to submit a job to the job scheduler.
  2. -l: This flag is used to specify resource requirements for the job.
  3. nodes=${2}: This sets the number of compute nodes requested for the job. ${2} is a placeholder that should be replaced with an actual value when executing the command. For example, if you want to request 4 nodes, you would replace ${2} with 4.
  4. ppn=${4}: This specifies the number of processors per node requested for the job. ${4} is a placeholder that should be replaced with an actual value. For example, if you want to request 8 processors per node, you would replace ${4} with 8.
  5. ${script-sh}: This is the path to the shell script file that contains the commands or job script to be executed. ${script-sh} is a placeholder that should be replaced with the actual path to the file.

Overall, this command is used to submit a job to the job scheduler, specifying the number of nodes and processors requested, and providing the path to the shell script file to be executed as the job.

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 qsub tool