Created
January 15, 2017 13:04
-
-
Save Superbil/66f1f3786beb72f03c5b461519081764 to your computer and use it in GitHub Desktop.
Nethack auto login for alt.org
This file contains hidden or 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 | |
set timeout 20 | |
set user [lindex $argv 0] | |
set password [lindex $argv 1] | |
spawn ssh [email protected] | |
set timeout 10 | |
expect "Login" | |
send "l" | |
expect "username" | |
send "$user\r" | |
expect "your password" | |
send "$password\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment