TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:setting_environmental_variables

This is an old revision of the document!


Setting Environmental Variables

The default behavior of TapeTrack programs can be changed by setting environmental variable.

These environmental variable can be set using the following methods.

Windows Command Line

<sxh text;> set VARIABLE=VALUE </sxh>

Where VARIABLE is the environmental variable name, and VALUE is the environmental variable value.

PowerShell

To set an environmental variable in Windows PowerShell, use the env: command.

<sxh> $env:TMSSREPORTFORMAT = “CSV” </sxh>

Using PowerShell variables will have no effect on TapeTrack executables.

Using a variable $TMSSREPORTFORMAT = “CSV” will not be interpreted as a Windows variable and will not be applied to the output.

Linux Shell

To set an environmental variable in the Linux operating system, use the export command.

<sxh plain;> export VARIABLE=VALUE </sxh>

Where VARIABLE is the environmental variable name, and VALUE is the environmental variable value.

You can also prepend the environmental variable to the command.

<sxh plain;> TMSSREPORTFORMAT=CSV TMSS10Inventory </sxh>

TapeTrack Config File

The TapeTrack Config File that is loaded when each Desktop and Command Line Program is initiated, it can also be used to set environmental variable.

<sxh plain;>

 variables = {
     TMSSLEVELNAMES = "A,B,C";
     TMSSNOLEVELSLOT = "1";
 };

</sxh>

technote/setting_environmental_variables.1565651426.txt.gz · Last modified: 2025/01/21 22:07 (external edit)