VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Connect to Sessio (https://forums.vandyke.com/showthread.php?t=14157)

Tonatiuh 04-23-2020 06:37 PM

Connect to Sessio
 
I have this simple python script:

Code:

# $language = "python"
# $interface = "1.0"

import SecureCRT

def Main():

        objTab = []
        objTab.append(crt.Session.ConnectInTab("TestSession"))
       
Main()

In Win10
========
1. It opens a new tab for the session
2. It sends something to the session window which disappears VERY fast (no way to read it)
3. Then it returns the message box:

"ScriptError

"Error: Connection Failed"



In WinServer2016
================
1. It opens a new tab for the session
2. It sends a message into the session window: "Hostname lookup failed: host not found"
3. Then it returns messagebox:

"ScriptError

"Error: Connection Failed"

In both cases, the testing session is able to open with no problems if I double click on the session in the Session Manager.

Any idea


All times are GMT -6. The time now is 06:07 PM.