u
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user