linux pppd 拨号
堵刻 2012-12-26 03:21:36 自己写的程序,进行pppd拨号
脚本1 unicom:
115200
nocrtscts
logfile /var/ppplog
ipcp-accept-local
ipcp-accept-remote
defaultroute
user CARD(拨号名)
usepeerdns
connect \"/usr/sbin/chat -v -f /etc/ppp/peers/chat-unicom\"
mtu 1300"
脚本2 chat-unicom::
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
ABORT "Username/Password Incorrect"
"" AT
OK "ATE0"
OK "AT&D2"
OK ATDT#777
CONNECT ""
然后条用pppd call unicom
提示connect script failed
日志信息为:
Dec 22 22:59:09 ubuntu pppd[2107]: pppd 2.4.5 started by root, uid 0
Dec 22 22:59:09 ubuntu chat[2110]: abort on (NO CARRIER)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (NO DIALTONE)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (ERROR)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (NO ANSWER)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (BUSY)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (Username/Password Incorrect)
Dec 22 22:59:09 ubuntu chat[2110]: send (AT^M)
Dec 22 22:59:09 ubuntu chat[2110]: expect (OK)
Dec 22 22:59:54 ubuntu chat[2110]: alarm
Dec 22 22:59:54 ubuntu chat[2110]: Failed
Dec 22 22:59:54 ubuntu pppd[2107]: Connect script failed
Dec 22 22:59:54 ubuntu pppd[2107]: Exit.
chap-secrets,pap-secrets文件已创建,
这个要怎么解决?