Last active
January 7, 2016 09:17
-
-
Save rekcah78/f09e0bbd29b566d5fa96 to your computer and use it in GitHub Desktop.
sg-getlist
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 | |
| spawn ssh "youuser\@sg.bsocom.net" | |
| expect "Connect to :" | |
| send "list\r"; | |
| expect "Connect to :" | |
| send "exit\r"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment