This commit is contained in:
Luk Lu
2021-11-07 12:46:39 +08:00
parent 8a0c0d9e1f
commit 11b284d17f
3 changed files with 11 additions and 17 deletions

View File

@@ -1,8 +1,8 @@
#!/usr/bin/expect
# Usage: expect this.sh [hostname] [username] [pwdadot] [pwdroot]
# Usage: expect this.sh [0:hostname] [1:username] [2:pwdadot] [3:pwdroot]
set timeout 30
set timeout 10
spawn ssh [lindex $argv 1]@[lindex $argv 0] -p 22
expect {
"yes/no"