Skip to content

Instantly share code, notes, and snippets.

@Superbil
Created January 15, 2017 13:04
Show Gist options
  • Save Superbil/66f1f3786beb72f03c5b461519081764 to your computer and use it in GitHub Desktop.
Save Superbil/66f1f3786beb72f03c5b461519081764 to your computer and use it in GitHub Desktop.
Nethack auto login for alt.org
#!/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