2013-11-22 20 views

回答

2
interact { 
    -re {.*} { 
     set command $expect_out(0,string) 
     send $command 
    } 

這是記錄在expect man page,在用於expect命令的部分(與段落開始「當模式匹配的...」)。

相關問題