← Back to team overview

sslug-teknik team mailing list archive

diald-sidste gang, forh�ntlig

 

Hej 
Så er det tæt på succes (håber jeg), har vist nok blot et problem:
"seriel line is looped back" , kommer i hvert fald ikke videre
 
[root@pia /root]# tail -n 22 /var/log/messages
Oct 12 20:58:35 pia chat[1282]: abort on (NO CARRIER)
Oct 12 20:58:35 pia chat[1282]: abort on (BUSY)
Oct 12 20:58:35 pia chat[1282]: abort on (NO DIALTONE)
Oct 12 20:58:35 pia chat[1282]: abort on (WAITING)
Oct 12 20:58:35 pia chat[1282]: timeout set to 25 seconds
Oct 12 20:58:35 pia chat[1282]: expect (CONNECT)
Oct 12 20:58:35 pia chat[1282]: ^M
Oct 12 20:58:37 pia chat[1282]: ATDT100177307734^M^M
Oct 12 20:58:37 pia diald[1191]: Connected to site 195.82.195.101
Oct 12 20:58:37 pia chat[1282]: CONNECT
Oct 12 20:58:37 pia chat[1282]:  -- got it
Oct 12 20:58:37 pia diald[1191]: Running pppd (pid = 1283).
Oct 12 20:58:37 pia pppd[1283]: pppd 2.3.7 started by root, uid 0
Oct 12 20:58:37 pia pppd[1283]: Using interface ppp0
Oct 12 20:58:37 pia pppd[1283]: Connect: ppp0 <--> /dev/ttyS1
Oct 12 20:58:37 pia pppd[1283]: Serial line is looped back.   ??????????
Oct 12 20:58:38 pia pppd[1283]: Connection terminated.
Oct 12 20:58:38 pia pppd[1283]: Connect time 0.1 minutes.
Oct 12 20:58:38 pia pppd[1283]: Exit.
Oct 12 20:58:38 pia diald[1191]: start sl0: SIOCADDRT: File exists
Oct 12 20:58:38 pia diald[1191]: stop ppp0: SIOCDELRT: No such process
Oct 12 20:58:39 pia diald[1191]: Delaying 30 seconds before clear to dial. 

Chatscript:
#!/bin/sh

LOGS=/var/log/chat.log
PHONE=100177307734

exec chat -v -r $LOGS \
REPORT CONNECT \
REPORT OK \
REPORT BUSY \
REPORT 'NO CARRIER' \
REPORT 'NO DIALTONE' \
TIMEOUT 8 \
'' "ATZ1" \
OK ATDT$PHONE \
ABORT 'NO CARRIER' \
ABORT 'BUSY' \
ABORT 'NO DIALTONE' \
ABORT 'WAITING' \
TIMEOUT 25 \
CONNECT               

ATZ1 er sat op efter "Lidt tips og information om PPP og internetopkobling"

Kort snip af /var/log/chat.log:

 Opening "/var/log/chat.log"...
chat:  Oct 12 20:59:47 OK
chat:  Oct 12 20:59:49 CONNECT 64000
Closing "/var/log/chat.log".
Opening "/var/log/chat.log"...
chat:  Oct 12 21:00:22 OK
chat:  Oct 12 21:00:24 CONNECT 64000
Closing "/var/log/chat.log".  

mvh/gert

o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o

Gert Holtoft      holtoft@xxxxxxxxxx

## DK-FARUM ##


Follow ups