Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Deck of Cards
idPBS

Card
labelPBS Directives

Directive

Explanation

#PBS -V

Export environment variables to the batch job

#PBS -m ae

Send mail at batch job abort/exit

#PBS -l pmem=4gb

Request that 4GB of memory be reserved for the batch job

#PBS -l nodes=1:ppn=2

Request that 2 CPU cores be reserved for the batch job

Card
labelPBS Variables

Variable

Description

PBS_JOBNAME

Job name specified by the user

PBS_O_WORKDIR

Working directory from which the job was submitted

PBS_O_HOME

Home directory of user submitting the job

PBS_O_LOGNAME

Name of user submitting the job

PBS_JOBCOOKIE

Job cookie

PBS_O_SHELL

Script shell

PBS_O_JOBID

Unique PBS job id

PBS_O_HOST

Host on which job script is running

PBS_QUEUE

Name of the job queue

PBS_NODEFILE

File containing line delimited list on nodes allocated to the job

PBS_O_PATH

Path variable used to locate executables within the job script

Note: On multi-core systems, a node (line in PBS_NODEFILE) will identify the hostname and a CPU core.

Card
labelSingle 1-CPU Job

This example runs PAUP on the input file input.nex that resides in the current working directory. A file (here we'll name it pbsjob) is created with the contents:

...