Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:02 PM.