Customizing Your ConfigurationChapter —5
184 TE 2000
5250 Terminal Emulation Programmer’s Guide
Example
If the screen sent to the terminal is:
Linux rlogin 2.4.6
login
The autologin script would be:
PromptSessionStart=1
HostName “*”
#wait for host login screen and send login and password
WaitFor “login”
Send “billy<ENTER>”
WaitFor “password”
Send “letmein<ENTER>”
In this example, you can search for the three leading spaces from the end
ofthepreviouslinetomakeauniquesearchstring.
Control Characters
You can include control characters in your auto-login script file. The
control char acter must be enclosed by < > (angle brackets) in
AUTOLOG.SCR. This table lists control characters for the TE 2000
5250 application.
Note: Some control characters may be represented by their hexadecimal
values. For a description of control characters and hexadecimal equiva-
lents, see the full ASCII chart in Appendix C, “Conversion Tables.”
Control Characters for Auto-Login Script File
Control Character Definition Control Character Definition
<ATTN> Attention <HOME> Home
<CLEAR> Clear <INS> Insert
<CUR_DN> Cursor Down <LTAB> Left Tab
<CUR_LF> Cursor Left <NEWLN> New Line
<CUR_RT> Cursor Right <RESET> Error Reset
<CUR_UP> Cursor Up <ROLL_DOWN> Roll Down
<DEL> Delete <ROLL_UP> Roll Up
<ENTE R> Enter <RTAB> Right Tab
<ERS_EOF> Erase Input <SPACE> Space
<F1> – <F24> Function keys
Loading the Auto-Login Script File
Follow these procedures to download an auto-login script file to your ter-
minal. The method depends on the type of terminal you are using.