Created
November 24, 2013 23:48
-
-
Save dlgg/7634135 to your computer and use it in GitHub Desktop.
Little expect script wich connect to fonera during Redboot, send ^C and go to interactive mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
#spawn cu -l /dev/ttyS0 -s 9600 | |
spawn telnet 192.168.1.254 9000 | |
set timeout 3600 | |
# Look for prompt | |
expect "enter ^C to abort" | |
send \003 | |
# send blank line (\r) to make sure we get back to gui | |
#expect "RedBoot>" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment