home *** CD-ROM | disk | FTP | other *** search
- Script:
- #
- # set up some strings for dialling up
- #
- if ![load $username]
- if [username "Enter your login username"]
- save $username
- end
- end
- if ![load $password]
- if [password "Enter your login password"]
- save $password
- end
- end
- load $prefix
- load $modemsetup
- load $number
- $userprompt = "ogin:"
- $passprompt = "word:"
- %attempts = 10
- #
- #
- #----------------------------------------------------------
- #
- # initialize modem
- #
- output "atz"\13
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
- #
- # setup our modem commands
- #
- output $modemsetup\13
- input 10 OK\n
- #
- # send phone number
- #
- %n = 0
- repeat
- if %n = %attempts
- display "Too many dial attempts"\n
- abort
- end
- output "atdt" $prefix $number\13
- %ok = [input 60 CONNECT]
- %n = %n + 1
- until %ok
- input 10 \n
- #
- # wait for the username prompt
- #
- input 30 $userprompt
- output $username\13
- #
- # and the password
- #
- input 30 $passprompt
- output $password\13
- #
- # we are now logged in
- # The terminal server starts PPP automatically now
- # so we are done.
- #