To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

Logon script - responses depending on challenge

nl - Thu 09/10/2008 19:59:06 CEST +0200

Hello,

First of all, thanks for kitty it's realy nice.
I like the possibility to logon, using the "login script file".
I've to login to many different systems with differnt promts.
So would it maybe possible, to send a response depending on the challenge?

It would be awesome if a challenge/response behaviour which would be similar to expect could be possible.



expect {
	-re \"([Uu]sername)|(login)\" { exp_send \"user\r\" }
	\"Password\" { exp_send \"password\r\" }
}


So this would result the follownig behavour:
Challenge: "Username:" or "username:" or "login"
Response: "user"


or Challenge: "Password"
Response: "password"



Best regards
nl

Cyd - Fri 10/10/2008 14:01:07 CEST +0200

Hi Nl

No it is not possible to "send a response depending on the challenge".
But if you have different systems with different prompts, you can define a specific login script file for each systems you need to log on.

Regards
Cyd

nl - Mon 13/10/2008 18:22:51 CEST +0200

Thanks for the information Cyd.
Bye nl




Answer


The forum is actually closed