Secure Global Desktop 4.40 Administration Guide > Users and Authentication > Login Script Variables
Secure Global Desktop login scripts use and support a number of variables. The following two types of variable are supported:
All login scripts use at least some of the guaranteed variables. Guaranteed variables always exist, though they might have a null value.
Optional variables are often used to test conditions and modify the login script's
behavior accordingly. Optional variables only exist if they have a value. For example, the TTA_ResumeTimeOut
variable only exists if the application object's Application Resumability attribute has a value.
To be able to use a variable in a login script, it must be defined in the runsubscript.exp
login script.
Variable | Description |
---|---|
ALTDISPLAY |
The fully qualified DNS name of the user's client device and the display number being used. |
DISPLAY |
The IP address of the user's client device and the display number being used. |
TTA_AGEDPASSWORD |
Whether to use the manual or dialog method of dealing with aged passwords. |
TTA_ALLOWTHIRDTIERDIALOG |
Whether to allow a dialog box on the application server if the user's password is aged, missing or incorrect.
This variable can have the values |
TTA_AUXCOMMANDS |
Any auxiliary commands to run on the application server. This corresponds to the application object's Window Manager attribute. |
TTA_CLIENT_IPADDR |
The IP address of the user's client device. This is the IP address obtained by the SGD Client. |
TTA_COMMAND |
The command to run on the application server. This corresponds to the application object's Application Command attribute. |
TTA_CONNECTIONSERVICE |
The transport used to connect to the application server. This corresponds to the application object's Connection Method attribute. |
TTA_ENVIRONMENT |
Any environment variable settings required on the application server. This corresponds to the application object's Environment Variables attribute. |
TTA_HOSTNAME |
The application server that the login script connects to. This is chosen by application load balancing, from those shown in the Hosting Application Servers tab. |
TTA_HOSTPROBE |
The path to the ttahostprobe binary. Used to check whether an application server is available. |
TTA_IPADDRESS |
The application server's IP address. |
TTA_LOGFILE |
The name of a file in which error and diagnostic messages are logged.
By default, this is of the form
If set to null, messages are not stored. To log messages in this file, include the code
|
TTA_PORT |
The port on which to connect to the application server for the Connection Method configured for the application object. |
TTA_PRIMARY_DNSNAME |
The primary SGD server's fully qualified DNS name.
This lets the login script choose the correct SGD
printer when setting the default printer value. It is used to
differentiate between multiple entries in the |
TTA_SCRIPT |
The Expect script which runs after runsubscript.exp , for example unix.exp . |
TTA_SECOND_TIER_DNSNAME |
The fully qualified DNS name of the SGD server hosting the application session.
Used with |
TTA_THIRD_TIER_DNSNAME |
The fully qualified DNS name of the application server hosting the application.
Used with |
TTA_THIRD_TIER_VARS |
The list of variables to export to the environment on the application server. |
TTA_STDERR |
A temporary error file. |
TTA_WILLDISCONNECT |
Whether the connection is broken once the command is executed. |
TTA_XLAUNCH |
Whether the application is an X application. The value of this variable is 0 or 1 . |
The following variables are also guaranteed variables and defined in runsubscript.exp
.
These are variables used by the SGD server when launching applications:
Most optional variables contain the values of object attributes. The application being started has its application object's attributes made available as optional variables. Similarly, the attributes of the user profile are also made available in the same way.
The remaining optional variables contain additional information about the user's session.
Variable | Description |
---|---|
TTA_Appearance |
Corresponds to a character application object's Border Style attribute. |
TTA_AppletHeight |
Corresponds to the application object's Window Size: Height attribute. |
TTA_AppletWidth |
Corresponds to the application object's Window Size: Width attribute. |
TTA_ApplicationName |
The application object's Federated Naming name. |
TTA_ApplicationPlacement |
Corresponds to the application object's Window Type attribute.
This variable can have the value
|
TTA_Arguments |
Corresponds to the application object's Arguments For Command attribute. |
TTA_AudioQuality |
Corresponds to the Windows audio quality attribute on the Global Settings » Client Device tab.
This variable can have the value |
TTA_Autowrap |
Corresponds to the character application object's Line Wrapping attribute. |
TTA_BackgroundColor |
Corresponds to the Background Color attribute for a 3270 or 5250 application object. |
TTA_ButtonLevels |
Corresponds to the 3270 or 5250 application object's Displayed Soft Buttons attribute.
This variable can have the value |
TTA_CachePassword |
Whether the user selected the Save Password box when they supply a user name and password for the application server. |
TTA_CodePage |
Corresponds to the character application object's Code Page attribute.
This variable can have the value |
TTA_ColorMap |
Corresponds to the character application object's Color Map attribute. |
TTA_Columns |
Corresponds to the character application object's Window Size: Columns attribute. |
TTA_Compression |
Corresponds to the application object's Command Compression attribute.
This variable can have the value |
TTA_ContinuousMode |
Corresponds to the application object's Command Execution attribute.
This variable can have the value
|
TTA_ControlCode |
Corresponds to the character application object's Escape Sequences attribute.
This variable can have the value |
TTA_Cursor |
Corresponds to the character application object's Cursor attribute.
This variable can have the value |
TTA_CursorKeyMode |
Corresponds to the character application object's Cursor Key Codes Modification attribute.
This variable can have the value |
TTA_DelayedUpdate |
Corresponds to the application object's Delayed Updates attribute. |
TTA_DisplayEnginePage |
Corresponds to the application object's Emulator Applet Page attribute.
Note This attribute is no longer used. |
TTA_DisplayName |
Corresponds to the user profile's Name attribute. |
TTA_Domain |
Corresponds to the application object's Domain Name attribute. |
TTA_EuroMapping |
Corresponds to the application object's Euro Characterattribute.
This variable can have the value |
TTA_FilePath |
Corresponds to the application object's Application Command attribute. |
TTA_FixedFontSize |
Corresponds to the character application object's Font Size: Fixed attribute. |
TTA_FontFamily |
Corresponds to the character application object's Font Family attribute.
This variable can have the value |
TTA_FontSize |
Corresponds to the character application object's Font Size attribute. |
TTA_ForegroundColor |
Corresponds to the 3270 or 5250 application object's Foreground Color attribute. |
TTA_GraphicsAcceleration |
Corresponds to the application object's Graphics Acceleration attribute. |
TTA_Height |
Corresponds to the application object's Window Size: Height attribute.
This variable provides the same information as |
TTA_HostLocale |
Corresponds to the application server object's Prompt Locale attribute. |
TTA_HostName |
The application server that the login script connects to.
This is chosen by application server load balancing, from those shown in the Hosting Application Servers tab. |
TTA_IBMHostName |
Corresponds to the 3270 or 5250 application object's Server Address attribute. |
TTA_Icon |
Corresponds to the application object's Icon attribute. |
TTA_InstanceName |
The application session ID. |
TTA_InterlacedImages |
Corresponds to the application object's Interlaced Images attribute.
This variable can have the value
|
TTA_KeyboardType |
Corresponds to the 3270 or 5250 application object's Keyboard Type attribute.
This variable can have the value |
TTA_KeymapLock |
Corresponds to the application object's Keyboard Map: attribute. |
TTA_KeypadMode |
Corresponds to the character application object's Numpad Codes Modification attribute.
This variable can have the value |
TTA_Lines |
Corresponds to the character application object's Window Size: Lines attribute. |
TTA_LocalAddr |
The IP address of the SGD host. |
TTA_LoginScript |
Corresponds to the application object's Login Script attribute. |
TTA_Maximise |
Corresponds to the 3270 or 5250 application object's Window Size attribute. |
TTA_MiddleMouseTimeout |
Corresponds to the application object's Middle Mouse Timeout attribute. |
TTA_ParentName |
The application object's Federated Naming name.
This variable provides the same information as
|
TTA_PortNumber |
Corresponds to the 3270 or 5250 application object's Server Port attribute. |
TTA_ProtocolArguments |
Corresponds to the Windows application object's Arguments for Protocol attribute. |
TTA_RemoteAddr |
The IP address of the application server which is to run the application. |
TTA_RequiresDisplayEngine |
Whether or not the application requires a display engine. |
TTA_ResumeTimeOut |
Corresponds to the application object's Application Resumability: Timeout attribute. |
TTA_RootColor |
Corresponds to the application object's Window Color: Custom color attribute. |
TTA_RootType |
Corresponds to the application object's Window Color attribute.
This variable can have the value |
TTA_ScrollStyle |
Corresponds to the character application object's Scroll Style attribute.
This variable can have the value |
TTA_SecureConnection |
Corresponds to the user profile's Security tab. |
TTA_SessionExit |
Corresponds to the application object's Session Termination attribute.
This variable can have the value |
TTA_SettingsItem |
Corresponds to the 3270 or 5250 application object's 'File' and 'Settings' Menus attribute. |
TTA_StatusLine |
Corresponds to the character application object's Status Line attribute.
This variable can have the value |
TTA_Suspend |
Corresponds to the application object's Application Resumability attribute.
This variable can have the value |
TTA_TerminalClass |
Corresponds to the character application object's Emulation Type attribute.
This variable can have the value |
TTA_TerminalType |
Corresponds to the character application object's Terminal Type attribute. |
TTA_TNClose |
Corresponds to the 3270 or 5250 application object's Connection Closed Action attribute.
This variable can have the value |
TTA_TopMenuBar |
Corresponds to the 3270 or 5250 application object's Menu Bar attribute. |
TTA_Transport |
Corresponds to the application object's Connection Method attribute.
This variable can have the value The guaranteed variable |
TTA_UserName |
The Federated Naming name of the user this application session is for. |
TTA_UserSecurityEquivalent |
Corresponds to the user profile's User Name attribute. |
TTA_UNIXAUDIO_QUALITY |
Corresponds to the UNIX audio quality attribute on the Global Settings » Client Device tab.
This variable can have the value |
TTA_UNIXAUDIOPRELOAD |
Corresponds to the X application objects Audio Redirection Library attribute. |
TTA_ViewHostReply |
Corresponds to the application object's Keep Launch Connection Open attribute. |
TTA_WebTop |
Corresponds to the Webtop Theme attribute.
Note This attribute is no longer used. |
TTA_Width |
Corresponds to the application object's Window Size: Width attribute.
This variable provides the same information as
|
TTA_WinCursor |
Corresponds to the application object's Use Windows Cursor attribute.
Note This attribute is no longer used. |
TTA_WindowsApplicationServer |
Corresponds to the Windows application object's Windows Protocol attribute.
This variable can have the value
|
TTA_WindowsApplicationSupport |
Corresponds to the Windows application object's Windows Protocol: Try Running From Client First attribute. |
Copyright © 1997-2007 Sun Microsystems, Inc. All rights reserved.