My bad.
The problem was with the curly braces. They are supposed to be at the same line as the expect command .
More Related Contents:
- Using conditional statements inside ‘expect’
- How to check if an email address exists without sending an email?
- Use Expect in a Bash script to provide a password to an SSH command
- C# Telnet Library
- Test if remote TCP port is open from a shell script
- What does “\r” do in the following script?
- What are the best ways to automate a GDB debugging session?
- Automating telnet session using bash scripts
- What is the equivalent of unbuffer program on Windows?
- Force telnet client into character mode
- Using expect to pass a password to ssh
- Difference between wscript and cscript
- get all keys set in memcached
- Creating a script for a Telnet session?
- How can I make an expect script prompt for a password?
- Is there an Expect equivalent gem for Ruby?
- Read file into String and do a loop in Expect Script
- Maximum number of concurrent connections on a single port (socket) of Server