Anonymously add a comment: (or register
|But while sending so I am unable to send passwords that contain @.Please guide how to send such passwors through Expect.
|Try using the escape character / before the @ symbol. Alternatively, put the password in quotes.|
|You need to add \r at the end of username and password - Leela|
|Here's a working example, which logs into the Houston server, which is running Windows 2003 Server, from a laptop running MacOS 10.5:
spawn telnet -l Administrator houston.fubar.com 2368
expect "password: "
Just save into a file, chmod 700, and you're good to go.
|Is this an example, it made it more fuzzier to me|
|I need to logon a legacy system ,needs a break after Escape char; so I send brk it prompts with an ? . If I put this it does not work:
send "send brk\r"
and it gets stuck , any advise ?
|you need to "expect" after every "send". So, combine the two sends, or expect a ">" after you escape back to the telnet prompt.|
|Should you be even now undecided: pick up your selected earbuds, go into a new Greatest coupe and enquire of for you to select these people in a Microsoft zune and then a music player and discover what one looks preferable to anyone, along with which in turn program making you look far more. You'll recognize that's meets your needs.
obat asam urat