Environment variable file
- Organization of this page
Format
environment-variable-name-1=variable-value-1 [environment-variable-name-2=variable-value-2] : :
File
Use any file.
Storage directory
- In Windows
-
Any folder on the host where commands are executed
- In UNIX
-
Any directory on the host where commands are executed
Description
This file defines environment variables to be used when commands are executed at managed hosts in JP1/IM.
When you use automated actions and JP1/IM - View to execute commands at managed hosts in JP1/IM, you can specify environment variables as part of the execution environments for the commands. You can set environment variables by using environment variable files that are specified in the format described here.
An environment variable file can have any name. By creating multiple environment variable files, you can specify an appropriate file for each command that is to be executed.
If no applicable environment variable file is specified in a Windows environment, the system's environment variables are used for command execution.
You must enter a linefeed code at the end of each line.
Do not specify character strings that are not in the format environment-variable-name=variable-value. If a specification is invalid, the command might terminate abnormally, depending on the OS on the host where the command is executed.
When the definitions are applied
An environment variable file is referenced when execution of a command begins.
Information that is specified
- environment-variable-name
-
Specify the name of an environment variable.
You cannot specify an environment variable that contains a linefeed character.
- variable-value
-
Specify a value for the environment variable.
By specifying the system environment variable name as this value, you can inherit the system environment variable value.
If you specify a system environment variable, enclose the variable name in the character sequences <- and ->, such as <-variable->.