home *** CD-ROM | disk | FTP | other *** search
- # ALBANY NET TRUMPET WINSOCK LOGIN.CMD FILE
- #
- # set up some strings for dialling up
- #
- if ![load $number]
- if [query $number "Enter your dial up phone number"]
- save $number
- end
- end
- $loginprompt = "ogin:"
-
- load $modeminit
-
- %attempts = 10
- #
- #
- #----------------------------------------------------------
- #
- # initialize modem
- #
- output $modeminit\13
-
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
-
- #
- # send phone number
- #
- %n = 0
- repeat
- if %n = %attempts
- display "Too many dial attempts"\n
- abort
- end
- output "atd"$number\13
- %ok = [input 60 CONNECT]
- %n = %n + 1
- until %ok
- input 10 \n
- #
- # wait for the login prompt
- #
- input 30 $loginprompt
- #
- # We're finished. PAP takes over from here.
- #