How can I automatically log on to my server when I start Glink?
By default Glink will start in the Sessions screen showing the list of available sessions, but you can also configure Glink to "Auto-connect session at startup" . When you do that, Glink will open the first session listed in you Sessions screen and connect to the server. In the communication setup for this session, you can configure username and password parameters for auto-login. For some protocols you can also configure the first command to be sent after the login. If you want to get further into your server application, you can record a Glink Connect macro that is executed when you connect a session.
​
Auto-connect session at startup
​
Auto-connect session at startup is enabled in the Menu -> General options screen.
​
Auto-login of Telnet session
​
If one or more of the parameters below is specified, Glink will try to login to the host. If the login string or the password is not specified, the login parameters will be asked for at connect time.
Please note if a connect macro is defined it will be ignored.
Wait for login prompt
Instructs Glink to wait for the login prompt string before sending the login string, this may for example be login. Please note that the string is case sensitive.
If no string is specified, Glink will wait for the first string received from host.
Login with
Specify the login string. If not specified, the login string will be asked for at connect time.
Wait for password prompt
Instructs Glink to wait for the password prompt string before sending the password, this may for example be Password. Please note that the string is case sensitive.
If no string is specified, Glink will wait for the next string received from host.
Password
Specify the password. If not specified, the password will be asked for at connect time. If a password is not needed, supply a * to avoid that the password is asked for at connect time.
Note
An Enter is performed after the Login string and after the password. If the parameter includes a function string at the end, the default Enter function will be ignored. In some cases, a Tab is needed after the Login string. The syntax for the Tab function is ^"f58"
The example shows how to do a auto-login to an AS/400 host using VT emulation
Wait for login prompt: 1998
Login with: MyName^"f58"
Wait for password prompt: [
Password: MyPassword
where [ is part of an invisible cursor control sequence.
Wait for command prompt
Instructs Glink to wait for the command prompt string before sending the Do command string.
If no string is specified, Glink will wait for the first string received from host.
Do command
Specify the command to run after the login. (Optional)
​
Auto-login of TN5250 session
Bypass signon using
If the IBM iSeries / AS400 server is configured for TN5250 Auto sign-on, you can specify the User ID and Password to bypass the initial sign-on screen.
If the host does not support this functionality or is not set up for it, check the Use alternate auto login parameter. Glink will instead fill in the User ID and Password in the Login screen to do an Auto-login.
Please note if a connect macro is defined it will be ignored if the Auto-login is defined.
​
Auto-login of TN3270 session
If both the parameters below is specified, Glink will try to login to the host application.
Please note if a connect macro is defined it will be ignored.
Login with
Specify the login string.
Password
Specify the password.
Note
A Tab is performed after the Login string and a Enter operation is performed after the password. If the parameter includes a function string at the end, the default function will be ignored. The syntax for the Tab function is ^"f58" and for the Enter function is ^"f44"
The example shows how to do a Enter after the name instead of a Tab function.
​
Login with: MyName^"f44"
Password: MyPassword
​
Record macro
Tap Menu -> Record macro to record a macro. Choose whether you want to record a Toolbar macro that you will assign to a button on the toolbar (default), or if you want to record a Connect macro that will be executed every time you connect this session to the host, or if you want to record a Keyboard macro that you want to assign to a physical key. The Connect macro is typically used to logon on to the host, start the desired host application and position the user in the desired startup form. Toolbar macros and Keyboard macros are typically defined for frequently used operations to avoid time consuming navigation and typing.
When recording a macro, you can use the Pause button next to the Enter button to specify that you want to wait for user input or that the execution of the macro should pause a number of milliseconds at this stage. This is useful if the host unlocks the keyboard and allows keyboard-/macro-input before it has completed its output to the terminal. User input can be collected at macro startup or at the stage where the input is required.
When you are at the end of the macro function you wanted to record, you go to Menu > Record Macro and assign a button text and tap Save recording or press a key that you want to map the recorded macro to. The macro will now be saved to the current toolbar or to the key you pressed. You can move it to a different toolbar from Menu > Settings Toolbar setup. If you made a typing error during the recording, you must tap Cancel in Menu > Record Macro to delete the recorded macro and go back to the main screen. Toolbar macros are removed when you remove their buttons from the toolbar. Keyboard macros are removed when you remove their keyboard mapping from Menu > Settings > Keyboard setup > Keyboard mapping. To remove a Connect macro you first must tap Connect macro in Menu > Record Macro, then tap Remove connect macro. If you want to define a completely new Connect macro, you now tap the Start recording button. If you don't tap Remove connect macro before you tap the Start recording button, you will extend the current Connect macro.
Pause the macro
At any point during the macro recording sequence, you can specify that the execution of the macro can be suspended for either user input or for a time interval.
Wait for user input
Header text
Specify the prompt value.
Ask user at macro start
The user is requested for input either at startup or at the stage where the input is required.
Password
If checked, the input field is set as a password entry field.
Input value
You can also specify an input value that is added to the current screen but not recorded. For example, if a password is requested, your password should not be recorded if recording is to continue.
Wait for a time interval
Specify the number of milliseconds the macro should be suspended at this stage.
​