beautypg.com

Getenv – Visara Master Console Center Scripting Guide User Manual

Page 122

background image

Chapter 5 Script Commands

Scripting Guide

122

GETENV

Syntax:

GETENV($Variable) ==> $Value

Description:

Obtains the current value of the given environment variable.

Action:

Searches the host system environment list for a string that matches

the given variable. Returns the value if found or an empty string if
there is no match.

Parameters:

$Variable: String. The environment variable name.

Returns:

String value for the environment variable (may be the empty string)

Example:

$Variable := GETENV( "PPID" )
LOG( LOG_FLT, "PPID has the value '" + $Variable + "'",
6)

See Also:

SYSEXEC