View Single Post
  #1  
Old 05-27-2013, 04: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 = "1.1.1.1"
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
ins.close()
return
main()

###########

thank you!
Reply With Quote