Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run a script to automate PPP connections' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run a script to automate PPP connections
Authored by: LinuxZealot2003 on Oct 16, '03 09:37:12AM

Argh. Betrayed by the evil html.

This is the correct script. Note the backslash ("\") characters.

!
@ANSWER
@HANGUP
EXIT 0
!
@ORIGINATE
!
CHRDELAY 1
!
@LABEL 10
IncTries
IfTries 5 99
PAUSE 5
WRITE "\13"
!
@LABEL 11
MATCHCLR
MATCHSTR 1 12 "Host Name:"
MATCHREAD 300
NOTE "Connect script couldn't match \34Host Name:\34. Retrying" 3
JUMP 10
!
@LABEL 12
WRITE "+CIS\13"
!
@LABEL 13
MATCHCLR
MATCHSTR 1 14 "ID:"
MATCHREAD 300
NOTE "Connect script couldn't match \34ID:\34."
JUMP 99
!
@LABEL 14
WRITE "YOUR.COMPUSERVEID/GO:PPPCONNECT\\YOUR.PASSWORD\13"
PAUSE 3
JUMP 90
!
@LABEL 90
PAUSE 1
EXIT 0
!
@LABEL 99
PAUSE 60
EXIT -6002 "Connection script failed."



[ Reply to This | # ]