How to set up environment variables for dxrt

As discussed in the previous sections, user can pass the value of passwords/security tokens using the environment variables. The following describes how users can set environment variables on the various platforms that support Rehersal Tool (dxrt).

Here is how a user can set environment variables on MacOS and RHEL:

On MacOS and RHEL, users can set environment variables using the export command. The environment variables generated by the export command will be accessible to all processes running in the current shell session. The following is an example of how to use the export command to set the value of the security token in the environment variable.

export dxrt_security_token=”security_token”

Here's how a user can set environment variables on Windows platforms:

  1. Launch the Windows “Run” Prompt.

  2. Type in sysdm.cpl and click OK.
    set up environment variables

  1. It will open the “System Properties Window“. Please select “Advanced“ tab on this Window.
    set up environment variables

  1. Please select “Environment variables“ on the “Advanced“ tab.

  2. This will take us to the "Environment variables" window.

  3. This window contains two sections. One is for user-level environment variables, while the other is for system environment variables.

Screenshot 2024-03-22 at 2.50.31 PM-20240322-092034.png
  1. We can use the user-level environment variables. Please click on “New..“ button in this section.

  2. This will give us the “New User Variable“ screen. Please provide the variable name, variable value and click on Ok.
    set up environment variables

  1. After this, Please click on the Path variable in the user-level environment variables.

  2. Click on “New” and add the environment variable which we had just created.set up environment variables

  1. Click on “Ok“, Close all the windows.

  2. Start a new “Windows Powershell session“. We can run the $env:env_var command to see the value that we had just set.set up environment variables