Personal blog of Ramon Fincken
ramon fincken
By.
•
min read
My profile
When you have no option left use expect
#!/usr/bin/expect -f set timeout -1 set myvar [lindex $argv 0]; spawn ssh theuser@$myvar "whoami" #match_max 1000000 expect "*assword:*" { send "password_here\r" } expect eof
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Leave a Reply