TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:setting_environmental_variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:setting_environmental_variables [2019/03/28 00:46] – [Setting Environmental Variables] Scott Cunliffetechnote:setting_environmental_variables [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Setting Environmental Variables ====== ====== Setting Environmental Variables ======
  
-The default behaviour of TapeTrack programs can be changed by setting [[variable:start|environmental variable]].+The default behavior of TapeTrack programs can be changed by setting [[variable:start|Environmental Variable]].
  
-These [[variable:start|environmental variable]] can be set using the following methods.+These [[variable:start|Environmental Variable]] can be set using the following methods.
  
 ===== Windows Command Line ===== ===== Windows Command Line =====
  
-<sxh plain;>+<code text;>
 set VARIABLE=VALUE set VARIABLE=VALUE
-</sxh>+</code> 
 + 
 +Where ''VARIABLE'' is the [[variable:start|Environmental Variable]] name, and ''VALUE'' is the [[variable:start|Environmental Variable]] value. 
 + 
 +===== Windows PowerShell ===== 
 + 
 +To set an [[variable:start|Environmental Variable]] in ''Windows PowerShell'', use the ''$env:'' command. 
 + 
 +<code> 
 +$env:TMSSREPORTFORMAT = "CSV" 
 +</code> 
 + 
 +Where ''TMSSREPORTFORMAT'' is the [[variable:start|Environmental Variable]] name, and ''CSV'' is the [[variable:start|Environmental Variable]] value. 
 +<note important> 
 +Using a Windows PowerShell variable $TMSSREPORTFORMAT = "CSV" will not be interpreted as a Windows variable and, as such,  will not be applied to the executable or output.</note> 
  
-Where VARIABLE is the variable name, and VALUE is the variable value. 
 ===== Linux Shell ===== ===== Linux Shell =====
  
-To set an environmental variable in the Linux operating system, use the ''export'' command.+To set an [[variable:start|Environmental Variable]] in the Linux operating system, use the ''export'' command.
  
-<sxh plain;>+<code plain;>
 export VARIABLE=VALUE export VARIABLE=VALUE
-</sxh>+</code>
  
-Where VARIABLE is the variable name, and VALUE is the variable value.+Where VARIABLE is the [[variable:start|Environmental Variable]] name, and VALUE is the [[variable:start|Environmental Variable]] value.
  
-You can also prepend the variable to the command.+You can also prepend the [[variable:start|Environmental Variable]] to the command.
  
-<sxh plain;>+<code plain;>
 TMSSREPORTFORMAT=CSV TMSS10Inventory TMSSREPORTFORMAT=CSV TMSS10Inventory
-</sxh>+</code>
 ===== TapeTrack Config File ===== ===== TapeTrack Config File =====
  
-The TapeTrack Config File that is loaded when each [[:start#tapetrack-desktop-software|Desktop]] and [[cli:introduction|Command Line Program]] is initiated, it can also be used to set [[variable:start|environmental variable]].+The TapeTrack Config File that is loaded when each [[:start#tapetrack-desktop-software|Desktop]] and [[cli:introduction|Command Line Program]] is initiated, it can also be used to set [[variable:start|Environmental Variable]].
  
-<sxh plain;>+<code plain;>
    variables = {    variables = {
        TMSSLEVELNAMES = "A,B,C";        TMSSLEVELNAMES = "A,B,C";
Line 37: Line 51:
    };    };
  
-</sxh>+</code> 
 + 
 +{{tag>technote environmental_variables setting variables config tapemaster lite checkpoint linux}}
technote/setting_environmental_variables.1553733997.txt.gz · Last modified: 2025/01/21 22:07 (external edit)