Environment variables

Option MOAB Torque command (mksub) Slurm command (sbatch)
Job Name $PBS_JOBNAME $SLURM_JOB_NAME
Job ID $PBS_JOBID $SLURM_JOB_ID
Submit directory $PBS_O_WORKDIR $SLURM_SUBMIT_DIR
Submit host $PBS_O_HOST $SLURM_SUBMIT_HOST
Node list $PBS_NODEFILE $SLURM_JOB_NODELIST
Queue name $PBS_QUEUE $SLURM_JOB_PARTITION
Allocated nodes $PBS_NUM_NODES $SLURM_JOB_NUM_NODES
Number of processes $PBS_NP $SLURM_NTASKS
Number of processes per node $PBS_NUM_PPN $SLURM_TASKS_PER_NODE
Array ID $PBS_ARRAYID $SLURM_ARRAY_TASK_ID