Customizing Your ConfigurationChapter —5
182 TE 2000
5250 Terminal Emulation Programmer’s Guide
Using the Auto-Login Feature
Use the auto-login feature to send the same login information each time
you login to the h ost. Wh en you start the TE 2000 application, the termi-
nal checks for an auto-login script file. If a script file exists, the terminal
runs the login commands from the auto-login script file before the TE
2000 program starts.
To use the auto-login feature, you need to develop an auto-login script file
and load the auto-login script file on the terminal. These steps are covered
on the following pages along with a list of the necessary control characters
and the procedure for disabling the auto-login feature.
Developing Auto-Login Script Files
A typical auto-login script file consists of Input and InputHidden com-
mands followed by a HostName command, followed by a series of Wait-
For and Send commands. A very simple script file may not have any input
commandsifalloftheterminalsareusingthesameaccount.
Note: The auto-login script must be an ASCII text file with
AUTOLOG.SCR as the required file name or the file is not processed.
Commands
You can use several commands to create auto-login script files. All com-
mands are case-sensitive. For example, WaitFor is a command, but
Waitfor is not a valid command. For examples of script files, see “Sample
Auto-Login Script Files” on page 189.
S Input
This is called with two parameters. The first one is a character string
enclosed in quotes used as a prompt to the user. The second one is a
string variable name indicating where to store the text string.
S InputHidden
Same as the Input script command except that user input is echoed as a
string of asterisks.
S HostName
This command is case-sensitive and must be presented as mixed-case
letters. HostName is followed by a character string enclosed in quotes.
The character string can be a host name or an asterisk. The HostName
command acts as an IF clause. If the host name matches, the following
section of the script file is executed up to the next HostName com-
mand. If an asterisk is used, it matches any host name.
Note: If a session name (f riendly name) is entered, then this is used in
place of the host name or server IP name to section off the autologin
script.
S WaitFor
Wait for a list of up to ten strings. The strings must be enclosed in
quotes and must be separated by a comma. The strings cannot exceed
20 characters in length.