1 Reply Latest reply on Sep 10, 2015 8:18 AM by Matt Dermody

    TelnetCE Autologin Command Prompt not excecuted (return/enter not sent to the host)

    Rookie

      Problem with Autologin feature which will stop and wait for user to press ENTER instead of executing command automatically.

       

      Setup:

      Wavelink TelnetCE - Host Profile - Autologin:

      Name Prompt: "login:"

      Name: "myuser1"

      Password Prompt: "password:"

      Password: "mypwd" (displayed as "*****"

      Command Prompt: "domain:"

      Command: "mydomain.com"

       

      Result of connection test:

      Autlogin correctly sets and executes login and password but for domain prompt only presets value "mydomain.com" and does not execute it (waits for user to press ENTER).

       

      Expected result:

      Return/ENTER is sent to host to execute the command.

       

      Remarks:

      The same problem occurs also for standard command (e.g. D:\MyApp\start.bat) when domain prompt is removed in the server setup.

       

      Enviro:

      Host: Windows Server 2008 R2 64bit, Georgia Softworks Telnet Server 8.05

      Client: Motorola MC9190G, Windows Mobile 6.5, Wavelink TelnetCE 7.3.237 (latest available)

       

      Thank you,

      Michal

        • 1. Re: TelnetCE Autologin Command Prompt not excecuted (return/enter not sent to the host)
          Matt Dermody SSMMVPGroup

          The built in login functionality of the TelnetCE client is relatively limited. It is great at auto-submitting username and password information but if you need to automate the submission of any additional information I would recommend using Scripting instead. Below is a sample script that I have used to accomplish a similar auto-login functionality in the past:

           

          Script( AutoLogin_USER )

          Activate( Screen_Update )

              Comment: Verify that this is the desired screen.

              If_Not( String_Equal( Get_Screen_Text_Length( 1, 1, 12 ), "login as:   ", 0, FALSE ) )

                  Return

              End_If

              Set_Cursor_Position( 1, 11 )

           

              Keypress_String( "USER" )

              Keypress_Key( "VT220", "Enter" )

           

              Comment: Wait for the desired screen.

              While_Not( String_Equal( Get_Screen_Text_Length( 2, 1, 7 ), "USER@", 0, FALSE ) )

                  Wait_For_Screen_Update

              End_While

           

              Keypress_String( "PASSWORD" )

              Keypress_Key( "VT220", "Enter" )

           

              Comment: Wait for the desired screen.

              While_Not( String_Equal( Get_Screen_Text_Length( 1, 1, 19 ), "SLC WEIGH CONTAINER", 0, FALSE ) )

                  Wait_For_Screen_Update

              End_While

              

               Keypress_Key( "VT220", "Enter" )

           

              Return