expect 自動輸入選項 自動輸入數字 - Linux

Table of Contents


thanks for paintlife08 and kouryuu


vim test.exp
=================================================
#!/usr/bin/expect -f
spawn ./MG
expect "Which programs do you want to run?"
send "0\n"
interact
=================================================

expect test.exp

這樣問題就解決了, Thanks,

--

All Comments