Xshell Forum

script problem on the serial port.

Last post: Sunday, August 18, 2013 7:15 PM by Support, 3 reply

 
Wednesday, April 11, 2012 6:57 PM - xilai

script problem on the serial port.

 
I make a session with SERIAL protocol connect to COM1.
Then, I run the Script.
But the function "xsh.Screen.WaitForString" can't work.

If I make a session with SSH protocol, this function can work.


Please give me help, Thanks!



----------------------------example.vbs--------------------------------
Sub Main

xsh.Screen.Synchronous = true

xsh.Screen.Send "cd"
xsh.Screen.Send VbCr
xsh.Screen.WaitForString "#"

xsh.Screen.Send "cd"
xsh.Screen.Send VbCr
xsh.Screen.WaitForString "#"

xsh.Screen.Synchronous = false

End Sub
----------------------------example.vbs--------------------------------

Program Ver. : Xshell 4
Wednesday, March 13, 2013 7:21 PM - rmp

Re: script problem on the serial port.

 
Hi,
I got the same problem, too
The function "xsh.Screen.WaitForString" can't work for serial port.
Is there any update on this?

Thank you.
Thursday, March 14, 2013 1:57 AM - Support

Re: script problem on the serial port.

 
We have found the problem with script and serial connection. The problem has been reported for fix.


---
Technical Support
Sunday, August 18, 2013 7:15 PM - Support

Re: script problem on the serial port.

 
This problem has been fixed in Xshell 4.0 Build 0127. Please upgrade your Xshell.

---
Technical Support.