doj Posted February 23, 2010 Posted February 23, 2010 With the subroutine appended I open (several) devices via PuTTY ssh and read contents (i.e port layout of Avocent Cyclades) or log in to routers or switches. My user-string contains sometimes combinations like "name:01:CYC-XYZ01" and passwords also contain upper and lower case character. I recognized ControlSend (mostly) to send lower case values, and in my German environment,translates ":" to "." I had to resort to "send" . case 1 send($user,1) send("{ENTER}") ;ControlSend(wingettext($putties[$putties[0]], ""),"",$putties[$putties[0]], $user,1) ;ControlSend(wingettext($putties[$putties[0]], ""),"",$putties[$putties[0]], "{ENTER}") case 2 send($passw,1) send("{ENTER}") ;ControlSend(wingettext($putties[$putties[0]], ""),"",$putties[$putties[0]], $passw,1) ;ControlSend(wingettext($putties[$putties[0]], ""),"",$putties[$putties[0]], "{ENTER}") $timeout = secs() +3 ;wait a bit seconds for 'access denied' case Else With "send" the routine works reliable ...but ....how comes, what is wrong ???? The whole subroutine is attached. I tooltipped the user,password string a line before usage, all characters are as desired. out-aged
doj Posted February 23, 2010 Author Posted February 23, 2010 ..and.. the attachementputty.au3 out-aged
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now