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:
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.
Specifies the name of the predefined setting for locale.
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.
Specifies the name of the predefined setting for locale.
Specifies the name of the locale for character classification.
Specifies the name of the locale for money-related information.
Specifies the name of the locale for numeric editing.
Specifies the name of the locale for date- and time-formatting information.
Specifies the name of the user's login account.
Specifies the sequence of path prefixes used by execlp() and execvp() in locating programs to run.
Specifies the present working directory. The agent changes to this directory prior to executing the script.
Specifies the user's terminal type.
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 |
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|