|
![]() |
|
Thread Tools | Rate Thread | Display Modes |
#166
|
|||
|
|||
Hi David,
I am not sure how it's used in your script, but what about if you "wait for" just ## characters using VBScript's Left() function? Is the command unique enough that would work? If you want to calculate an exact amount of columns, somewhere in your script where you expect to be at a prompt, add this line: Code:
nCmdCols = g_objNewTab.Screen.Columns - g_objNewTab.Screen.CurrentColumn Code:
strFirstLine = Left(strCommand, nCmdCols) ![]()
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#167
|
|||
|
|||
Quote:
For Each strCommand In vCommands strCommandEcho = Left(strCommand, 40) If strCommand = "" Then Exit For ' Send the command text to the remote g_objNewTab.Screen.Send strCommand & vbcr ' Wait for the command to be echo'd back to us. ' g_objNewTab.Screen.WaitForString strCommand g_objNewTab.Screen.WaitForString strCommandEcho |
#168
|
|||
|
|||
Script error
Complete newby here
first time I ran script I get a protocol error occurred. non-assigned port any ideas |
#169
|
|||
|
|||
Hi swjriggs,
Are you using the VBScript version or the Python version of the script? Did you make any edits to the provided example script? I am going to need to see copies of your hosts and commands file (and the script file if you altered it). Please attach to an email (append .txt extension to the script file if attaching it) and send to support@vandyke.com and include Attn Brenda - Forum Thread #10651 in the subject line.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#170
|
|||
|
|||
Log File Question
Is it possible to set the log file name to the hostname of the device we're connecting to and running commands on instead of the IP Address of the device?
|
#171
|
|||
|
|||
Hi M1NDN1NJ4,
Before we try to figure out a way to specify the hostname via logging, we'll need some more information about your particular setup:
__________________
Thanks, --Cameron VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
example script |
Thread Tools | |
Display Modes | Rate This Thread |
|
|