0

I need a script that connects to a device on my network and export a list of data...

#!/usr/local/bin/expect -f
spawn telnet hostname
expect -exact "Username:"
send -- "username\r"
expect -exact "Password:"
send -- "password\r"
expect "#"
send -- "command\r"
interact
expect "#"
send -- "logout\r"`

I get some desired output but not completely. The output has more than 4000 lines and at line 80 the script gets a line " --More-- " waiting for user.

How can I get the full output?

2
Contributors
1
Reply
11
Views
4 Years
Discussion Span
Last Post by masijade
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.