PasswdPrompt

e$B$-$7$b$H$G$9e(B

http://www.atdot.net/~ko1/w3ml/w3ml.cgi/rhg-tokyo/msg/62 e$B$N7o$G$9e(B

— telnet.rb_ORG 2007-05-20 14:49:34.000000000 +0900
+++ telnet.rb 2007-05-20 14:51:03.000000000 +0900
@@ -708,7 +708,7 @@
# data is also yielded to the block as it is received.
def login(options, password = nil) # :yield: recvdata
login_prompt = /[Ll]ogin[: ]*\z/n

  •  password_prompt = /Password[: ]*\z/n
    
  •  password_prompt = /[Pp]assword[: ]*\z/n
     if options.kind_of?(Hash)
       username = options["Name"]
       password = options["Password"]

e$B$o$?$J$Y$G$9!#e(B

“KISHIMOTO, Makoto” [email protected] writes:

   if options.kind_of?(Hash)
     username = options["Name"]
     password = options["Password"]

e$B$3$N$/$i$$$NJQ99$OF~$l$F$b$$$$$H;W$$$^$9$,!“e(B
logine$B%a%=%C%I$Ge(B
“PasswordPrompt” => /[Pp]assword[: ]*\z/n
e$B$H;XDj$9$l$P%Q%C%A$r$”$F$J$/$F$bBP1~2DG=$G$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs