View Single Post
  #2  
Old 07-01-2019, 08:59 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,548
Hi MattP,

I am not sure the bug you are reporting. First, one thing I noticed, this should be a \r to simulate pressing ENTER:

SESSIONID.Screen.Send(COMMANDTEXT + "\r")


Quote:
When I run it exactly as below, it will not even end when I hit Enter and generate a new \r\n and feed it a line containing the "#", it does not find it - i believe because it's removing the # from the string, so it is unable to find it.
The ReadString() function reads until <string(s) specified>, so it's not going to include the # character in the variable, if that's what you were expecting. So you would appear to be in an endless loop inside the while statement.

Is that what you meant?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote