VanDyke Software Forums

VanDyke Software Forums (
-   Scripting (
-   -   pthon multiple tabs script problem (

ufo 05-27-2013 04:07 AM

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!

bgagnon 05-28-2013 08:54 AM

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.

All times are GMT -6. The time now is 12:39 AM.