View Single Post
Old 02-04-2019, 10:34 AM
rleon rleon is offline
Registered User
Join Date: Jan 2008
Posts: 116
I figured out what the issue is but i don't know how to fix it .

In my top block
crt.Screen.WaitForString("nfs]# ")               
crt.Screen.Send("ssh -oStrictHostKeyChecking=no root@" + host + '\r')                
crt.Screen.WaitForString("word: ")                
crt.Screen.Send("Mypassword" + chr(13))
I am waiting for word from the host i am connecting to.

crt.Screen.WaitForString("word: ")
Since it times out .. fails I never get word - therefore it never goes into the if statements.

Would the only fix be to do another if statement?
Reply With Quote