View Single Post
Old 10-13-2016, 09:08 AM
corp-mule corp-mule is offline
Registered User
Join Date: Mar 2006
Posts: 21

I gave it a quick glance. The titles of the files indicate that it might do what I want. But, as I looked at the files ... I'll *_never_* be able to troubleshoot them if something goes wrong. laffs ... I can't even figure out this simple script.

So ... on this script ... why was the solution suggested if it doesn't compensate for the output containing the "wait for string?" I thought it was supposed to make the script "wait for" the host's prompt, which contains the host's (or sessions) name?

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

Should I change the "wait for string" to match the code in the solution?

So ... change ...

crt.Screen.WaitForStrings strPrompt, "#"

to ...

crt.Screen.WaitForStrings strHostname & "#"

Reply With Quote