Re: [問題] 一個FreeBSD的問題

看板FreeBSD作者時間21年前 (2004/10/25 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/10 (看更多)
※ 引述《VIPER.bbs@bbs.njtc.edu.tw (☆ 火 炎 焱 燚 ☆)》之銘言: > #!/usr/bin/expect > # kkcity.expect - user rwx ONLY > spawn telnet "-8" "bbs.kkcity.com.tw" > expect { > "Connection" { exit } > "輸入代號:" { > send "vngirl\n" > expect "輸入密碼:" > send "password\n" > # \n = Enter > send "\n\n\n\nf\n" > } > } > # send out the NULL character every 60 secs > interact timeout 60 { send -null } > exit > 有人可以跟我說明一下嗎@@? 我之前有查到一個作法 給你參考 spawn sh -c "exec /usr/bin/telnet -8 ptt.cc" interact timeout 450 { send " " } -- ※ Origin: 精靈之城<bbs.ntnu.edu.tw> ◆ From: wood.ite.ntnu.edu.tw
文章代碼(AID): #11U-ti00 (FreeBSD)
文章代碼(AID): #11U-ti00 (FreeBSD)