0
# match_max 1000000000
set timeout 60
spawn ssh -o "StrictHostKeyChecking no" "[email protected]$hostname"
match_max 1000000000
如果我在使用ssh之前給出了match_max選項,我沒有得到完整的輸出到expect_out(buffer)
,但是如果我在SSH之後給出同樣的結果,我會得到正確的結果。在spawn ssh之後或之前指定match_max時,它會有什麼不同?
此外,如果我在第一種情況下使用-d選項,我會得到完整的輸出。爲什麼?
另外,如何檢查爲我的Linux系統設置了多少緩衝區?我查找了limit
命令,但找不到它。