有關spawn的問題 - Linux

Table of Contents

爬過文了,可是他的解法似乎不適用在我的情況QQ

以下是我的script內容

1 #!/usr/bin/expect
2 #expect -f ./ptt
3 spawn /usr/bin/telnet ptt.cc
4 expect 註冊:
5 send "username\r"
6 expect 密碼:
7 send "password\r"
8 send "\r"
9 send "f\r"
10 send "e"
11 interact timeout 560 {
12 send "f\r"
13 send "e"
14 }

請問一下大家要怎麼解決執行這個script時,

會出現spawn: Command not found.的問題

麻煩了,謝謝。

--

All Comments