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 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
 


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 01:14 AM.