Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Old 05-27-2013, 05:07 AM
ufo ufo is offline
Registered User
Join Date: May 2013
Posts: 1
pthon multiple tabs script problem

Hi folks

I've been running in this kind of issue: while trying to set up multime tabs connection from a host txt file I gest stucked with the 2nd instance of the iteration

Here's the script: could you please help me to find out the problem?


import sys, os, string, threading
host = ""
user = "doo"
password = "doo"

def main():

ins = open( "c:\\host.txt", "r" )
fList = []
fList = ins.readlines()
for line in fList:
crt.Screen.Synchronous = True
crt.Session.ConnectInTab("/SSH2 /L %s /PASSWORD %s /C 3DES /M MD5 %s" % (user, password, host))
crt.Screen.Synchronous = False


thank you!
Reply With Quote
Old 05-28-2013, 09:54 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,520
Hi ufo,

First, what version of SecureCRT are you using?

On what platform?

Is Reuse disconnected tabs enabled in the Terminal / Tabs/Tiling category of SecureCRT's Global Options?

You also should review your script. I am not sure if "" was just used to post in the forums, but that could be one cause of the hang.

For another thing, you claim to be connecting to a list of hosts, but your connect call includes only the variable host, which has been assigned

I suggest putting in some message boxes to get an idea of what might be happening following the ConnectInTab() call.

VanDyke Software
Technical Support
(505) 332-5730
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:20 AM.