spawn ssh -q user@xx.xx.xx.xx
Password:
Password:
Expect ожидает null, прежде чем я отправлю пароль.
Информация об отладке
expect: does "" (spawn_id exp6) match glob pattern "yes/no"? no
"Password: "? no
Password:
expect: does "Password: " (spawn_id exp6) match glob pattern "yes/no"? no
"Password: "? yes
expect: set expect_out(0,string) "Password: "
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "Password: "
send: sending "password \r" to { exp6 }
expect: does "" (spawn_id exp6) match glob pattern "*>"? no