View Single Post
  #2  
Old 12-29-2020, 07:50 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,574
Hi garrettwilliams,
Quote:
This script is going up and grabbing the output of the 'show term'. I cannot, no matter what I've tried, just get the thing to read after show runn.
What is the script supposed to "read"? If you mean it's not reaching the ReadString() it's likely because you are already out of sync after these statements:
Code:
crt.Screen.Send("term length 0\n")
crt.Screen.WaitForString("\n")
The above WaitForString() is only going to capture the echoed new line. You need a WaitForString() to know the command is complete (likely waiting for the prompt, as you have done inside the while construct).
__________________
Thanks,
--Brenda

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