Summary
Set System Environment Variable action on Unix / Linux systems.Synopsis
This article talks about the Set System Environment Variable action on Unix / Linux systems.
Discussion
When using InstallAnywhere, the Set System Environment Variable action in the Install sequence can be used to create or set system environment variables for Current User or All Users. On Unix / Linux systems, the action writes the environment variable to different files.
For bash shell, if the variable is set for Current User, the installer first tries to write to the .bash_profile file in the user?s home directory. If the .bash_profile is not present, it tries to write to .bash_login file in the user?s home directory. If the bash_login file is not present, it writes to .profile file in the user?s home directory.
On Unix / Linux, after the installer sets the environment variable and installation completes, the user needs to log out and log back in to the system to make the environment variable available. To make the environment variable available immediately after install, one can use the unix command below. For example, if the environment variable is written to the /etc/profile file, use the following command:
source /etc/profile
However, note that this will only make the change to the current working shell.
Additional Information
For other shells such as sh, csh, and ksh, the installer may write to .profile in the user?s home directory or /etc/profile.
Related Articles
How to set License Search path using an Environment Variable for individual Server and Triad Server? 19Number of Views Gathering diagnostic tracing from a FlexNet inventory agent process on Unix-like operating systems 135Number of Views How to Capture Debug Output for UNIX / Linux or Pure Java Installers 4Number of Views Agent-based Oracle inventory fails when ORACLE_HOME environment variable in impersonated user's profile does not match the… 5Number of Views Setting an InstallAnywhere Variable from within Custom Code 7Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago