Log in Page Discussion History Go to the site toolbox

Cloud Vars

From Engineering Grid Wiki

Revision as of 09:00, 15 April 2013 by Mark (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Grid Engine automatically supplies a number of useful variables to the environment of the job, listed below.

$JOB_ID is useful when wanting to make temporary files and directories - that is a unique number associated with your job and will never be repeated.

  • ARCH - The Sun Grid Engine architecture name of the node on which the job is running; the name is compiled-in into the sge_execd binary
  • SGE_JOB_SPOOL_DIR - The directory used by sge_shepherd(8) to store jobrelated data during job execution
  • SGE_O_HOME - The home directory path of the job owner on the host from which the job was submitted
  • SGE_O_HOST - The host from which the job was submitted
  • SGE_O_LOGNAME - The login name of the job owner on the host from which the job was submitted
  • SGE_O_MAIL - The content of the MAIL environment variable in the context of the job submission command
  • SGE_O_PATH - The content of the PATH environment variable in the context of the job submission command
  • SGE_O_SHELL - The content of the SHELL environment variable in the context of the job submission command
  • SGE_O_TZ - The content of the TZ environment variable in the context of the job submission command
  • SGE_O_WORKDIR - The working directory of the job submission command
  • SGE_STDERR_PATH - The path name of the file to which the standard error stream of the job is diverted; commonly used for enhancing the output with error messages from prolog, epilog, parallel environment start/stop or checkpointing scripts
  • SGE_STDOUT_PATH - The path name of the file to which the standard output stream of the job is diverted; commonly used for enhancing the output with messages from prolog, epilog, parallel environment start/stop or checkpointing scripts
  • SGE_TASK_ID - The task identifier in the array job represented by this task
  • ENVIRONMENT - Always set to BATCH; this variable indicates that the script is run in batch mode
  • HOME - The user’s home directory path from the passwd file
  • HOSTNAME - The host name of the node on which the job is running
  • JOB_ID - A unique identifier assigned by the sge_qmaster when the job was submitted; the job ID is a decimal integer in the range to 99999
  • JOB_NAME - The job name, built from the qsub script filename, a period, and the digits of the job ID; this default may be overwritten by qsub -N
  • LOGNAME - The user’s login name from the passwd file
  • NHOSTS - The number of hosts in use by a parallel job
  • NQUEUES - The number of queues allocated for the job (always 1 for serial jobs)
  • NSLOTS - The number of queue slots in use by a parallel job

Site Toolbox:

Personal tools
This page was last modified on 15 April 2013, at 09:00. - This page has been accessed 2,303 times. - Disclaimers - About Engineering Grid Wiki