View Single Post
Old 05-05-2015, 08:27 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,636
Hello Mario,

There are many unknowns.

What version of SecureCRT are you using?

On what platform?

When you say it works 1 out of 3 times, are you saying you get an error for those two failure cases?

Or does the script just not complete execution two times?
If so, is Cancel available from the Script menu? If so and you select it, what is the error?

Is there a way to trace the script execution and see whats going on? Also sometimes it looks like maybe the characters are coming faster than the script can read with WaitforString since the string comes but it just gets stuck waiting. Is this possible?
You can debug the script execution if you include debug statements in the script (ie: write comments to a log file).

The above description sounds like a synchronous issue. Did you set synchronous to True?

See information about the importance of Synchronous in section 4.2 of the scripting manual here.

The topic header is:
Avoid "Missing" Data with Screen.Synchronous = True

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote