Previous Topic: Modify Resource Limits for a UNIX JobNext Topic: Wake on LAN Jobs


Environment Variables in UNIX

In UNIX, you use environment variables to define the local environment to run a script. You can use UNIX environment variables or define your own. You can also add or update UNIX environment variables.

You can pass the following UNIX environment variables to a script:

HOME

Specifies the name of the user's initial working directory, and is used to find the .profile, .cshrc, and .login scripts.

Default: Home directory of the user running the script.

LANG

Specifies the name of the predefined setting for locale.

LC_ALL

Specifies the locale to be used if any of the five LC_ symbols (LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, and LC_TIME) are not defined.

LC_COLLATE

Specifies the name of the predefined setting for locale.

LC_CTYPE

Specifies the name of the locale for character classification.

LC_MONETARY

Specifies the name of the locale for money-related information.

LC_NUMERIC

Specifies the name of the locale for numeric editing.

LC_TIME

Specifies the name of the locale for date- and time-formatting information.

LOGNAME

Specifies the name of the user's login account.

PATH

Specifies the sequence of path prefixes used by execlp() and execvp() in locating programs to run.

PWD

Specifies the present working directory. The agent changes to this directory prior to executing the script.

TERM

Specifies the user's terminal type.

TZ

Specifies the time zone information.

Example: Variable Names and Their Values

The following table displays examples of variable names and their values:

Variable Name

Value

HOME

/user/user1

INPUT

/home/test

PWD

/usr/scripts/dailyrun

More information:

Specify Environment Variables