Re: [問題] 一個FreeBSD的問題
※ 引述《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
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章