Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

not working xsh.Screen.WaitForString("login") xsh.Screen.Send("admin")

Tuesday, August 16, 2016 9:29 AM - Boobathi

not working below line as expected
someone help
xsh.Screen.WaitForString("login")
xsh.Screen.Send("admin")

Program Ver. : Xshell 5


Re: not working xsh.Screen.WaitForString("login") xsh.Screen.Send("admin")

Thursday, August 18, 2016 9:17 AM - zootopia

The waitforstring api seems to work well.

The next text is a script to login a server. This script works well from local shell status.

sub main
xsh.Screen.Synchronous = True
xsh.Screen.Send("telnet myserver"+vbcr)
xsh.Screen.WaitForString("login")
xsh.Screen.Send("test"+VbCr)
xsh.Screen.WaitForString("assword")
xsh.Session.Sleep 500
xsh.Screen.Send("test"+VbCr)
end sub

Good luck!


Previous views: 133
  • No labels