我的expect檔案長這樣
#!/usr/bin/expect
set timeout 30
spawn ssh mysite
expect "Password:"
send "pass"
interact
如果ssh沒加Nf參數是沒問題,但加了一輸入完密碼就斷線了
請問該怎麼改寫呢?google了很久找不到有人有跟我一樣的問題
--
#!/usr/bin/expect
set timeout 30
spawn ssh mysite
expect "Password:"
send "pass"
interact
如果ssh沒加Nf參數是沒問題,但加了一輸入完密碼就斷線了
請問該怎麼改寫呢?google了很久找不到有人有跟我一樣的問題
--
All Comments