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?