[問題] 有關spawn的問題

看板Linux作者 (lh132)時間16年前 (2009/09/29 00:25), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
爬過文了,可是他的解法似乎不適用在我的情況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.的問題 麻煩了,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.153.178
文章代碼(AID): #1AmEEBma (Linux)