View Single Post
  #3  
Old 02-02-2019, 07:25 AM
rleon rleon is offline
Registered User
 
Join Date: Jan 2008
Posts: 116
Thank you i tried that

I replaced

With my promit

Code:
strJumpHostPrompt = "# "
And I get the error ..

Code:
ScriptError

Error: Connection lost

File: /Users/rleon/crt_scripts/nfs2/test2.py
Line: 44

        crt.Screen.WaitForString(strCommand + "\r\n")


If i can get this work it would be great .. but the only thing is i have 100's of hosts

Reading from a list would make this script ideal.

Code:
with open('/Users/rleon/hosts') as hosts_:
        for host in hosts_:
Reply With Quote