What environmental variables are available on Argo?

There are two environments, each with its own define variables, available to you: your shell environment variables, and torque environmental variables.

Shell environmental variables

To see a list of your shell environmental variables, type: 

env | more 

at your shell prompt. To pass all the variables (not just a subset) to your job, include the -V option on the qsub command.

Torque environmetal variables

Every user job has the following torque enviromental variables available to it:

Variable Description
PBS_ENVIRONMENT Set to PBS_BATCH to indicate that the job is a batch job; otherwise, set to PBS_INTERACTIVE to indicate that the job is a PBS interactive job.
PBS_JOBID The job identifier assigned to the job by the batch system.
PBS_JOBID The jobname supplied by the user.
PBS_NODEFILE The name of the file that contains the list of the nodes assigned to the job.
PBS_QUEUE The name of the queue from which the job is executed.
PBS_O_HOME The value of the HOME variable in the environment in which qsub was executed.
PBS_O_LANG The value of the LANG variable in the environment in which qsub was executed.
PBS_O_LOGNAME The value of the LOGNAME variable in the environment in which qsub was executed.
PBS_O_PATH The value of the PATH variable in the environment in which qsub was executed.
PBS_O_MAIL The value of the MAIL variable in the environment in which qsub was executed.
PBS_O_SHELL The value of the SHELL variable in the environment in which qsub was executed.
PBS_O_TZ The value of the TZ (time zone) variable in the environment in which qsub was executed.
PBS_O_HOST The name of the host upon which the qsub command is running.
PBS_O_QUEUE The name of the queue to which the job was submitted.
PBS_O_WORKDIR The absolute path of the current working directory of the qsub command.

 

Need help?

Last updated: 

August 29, 2012

Browse by tag