View Single Post
  #22  
Old 10-12-2016, 07:42 AM
corp-mule corp-mule is offline
Registered User
 
Join Date: Mar 2006
Posts: 21
Quote:
Originally Posted by bgagnon View Post
Hi corp-mule,

I have some further insight from our scripting guru:
  • If out of sync, logging will stop at the point where Session.Log = False (which may very well be before all of the output arrives)

  • Considering that the script is using a WaitForStrings(strPrompt, "#"), that means that an errant "#" character anywhere in the output of a command (not part of the shell prompt) could result in getting out of sync

  • For troubleshooting purposes, use ReadString() instead of WaitForStrings(), and write the results of each ReadString(strPrompt, "#") to a separate log file so you can potentially determine where the script is getting out of sync



Isn't that what this code is supposed to compensate for?

' Get hostname from session
Set objTab = crt.GetScriptTab()
Set objConfig = objTab.Session.Config
strHostname = objConfig.GetOption("Hostname")
strPrompt = strHostname & "#"


Reply With Quote