Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Knowledge Base

   Products   Downloads   Sales   Support   About us
  Knowledge Base  Ask Cody  Manuals  Source Code Library  Resources



        
 
Can IntelliTerm be configured to automatically login to a server?
 
Product: Distinct IntellitermTopic: GeneralLast updated: 3/31/2008
 
Q.: Can IntelliTerm be configured to automatically login to a server?
A.: Yes, this can be achieved by creating a macro and associating it with the specific IntelliTerm profile that is to automatically login to the server.

Following is an example of how to create an autologin macro to connect to a UNIX system. The macro assumes that no data needs to be sent before receiving a login prompt:

  1. Connect to the server using the profile to be used, the select Edit from the Macro menu and create the following macro:
    Sub Main 
    MAX_ATTEMPTS=20 
    'The next line supplies your account login name to the server. 
    'Replace "username" with your account name.
    
    LoginID="username" 
    
    'The next line is the prompt that your server sends out for the user to enter the account
    'password. Replace this with the prompt used by your server (eg. "word:")
    
    PasswordPrompt="assword:"
    
    'The next line supplies your account password. Replace "password" with your actual account password.
    
    Password="password" 
    CurrentHost.Keys LoginID+"\n" 
    i=0 
    While InStr(CurrentHost.Text,PasswordPrompt)<=0 
    CurrentHost.WaitIdle(200) 
    i=i+1 
    If i>MAX_ATTEMPTS Then End 
    Wend 
    
    If(i>MAX_ATTEMPTS) Then 
    MsgBox "Autologin failed" 
    Exit Sub 
    End If 
    
    CurrentHost.Keys Password+"\n" 
    End Sub 
    

    In the Macro Editor, select Save from the File menu to save the macro to a file, e.g.: c:\mymacros\autologin.wwb Close the Macro Editor
  2. Select Edit Session Profile from the Options menu in ntelliTerm Select General and set "Autostart Quick-Key/Macro" to the full path of the autologin macro you just created (in our example this would be c:\mymacros\autologin.wwb). Then click on Save to save this new setting to your profile.
Once you have done this each time the profile is started it will automatically run the macro created and proceed to automatically login to the server using the account information specified in the macro.
Do you find this information useful ?       Yes   No   Not Sure




Search by Keyword


If you did not find what you are looking for:


Products

 Network Monitor
The Distinct Network Monitor is a protocol analyzer for Windows that includes both packet sniffing and network traffic statistical analysis tools.

 Intelliterm
The Most Complete Terminal Emulator for TN3270, TN5250 and DEC VT220 to VT420

 RPC for C and C++
The Fastest Way to Port Your Existing Unix-RPC Applications to Windows

  7/24/2008   Legal notices | PRIVACY Policy | Networking News |         Page Last Modified: 3/31/2008