Lines Matching defs:cmd
37 # issuing one or more #cmd() calls, and then calling #close()
39 # #write() methods, which #cmd() is implemented on top of, are
51 # option once when you create the Telnet object and use #cmd() calls;
53 # look for as the Match option to every #cmd() call, or call
73 # localhost.cmd("command") { |c| print c }
83 # pop.cmd("user " + "your_username_here") { |c| print c }
84 # pop.cmd("pass " + "your_password_here") { |c| print c }
85 # pop.cmd("list") { |c| print c }
248 # #cmd(), and #login()). The default value is 10 seconds.
678 def cmd(options) # :yield: recvdata
737 line += cmd({"String" => username,
739 line += cmd(password){|c| yield c }
741 line += cmd(username){|c| yield c }
746 line += cmd({"String" => username,
748 line += cmd(password)
750 line += cmd(username)