View Single Post
  #1  
Old 04-23-2020, 06:37 PM
Tonatiuh Tonatiuh is offline
Registered User
 
Join Date: Jul 2006
Posts: 69
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
Reply With Quote