home *** CD-ROM | disk | FTP | other *** search
- #
- # initialize modem
- #
- output atz\13
- input 20 OK\n
- #
- # set modem to indicate DCD
- #
- #
- # send phone number
- #
- output atdt$VPRO_02\13
- #
- # now we are connected.
- #
- input 50 CONNECT
- #
- # wait till it's safe to send because some modem's hang up
- # if you transmit during the connection phase
- #
- wait 50 dcd
- #
- # now prod the terminal server
- #
- output \13
- #
- # wait for the username prompt
- #
- input 50 ogin:
- #username Enter your username
- output gast\13
- #
- # and the password
- #
- input 50 assword:
- output gast\13
- #
- # we are now logged in
- #
- #input 30 >
- #
- # see who on for informational reasons.
- #
- #
- # jump into slip mode
- #
- #output slip\13
- input 50 (S)
- output s\13
- #
- # wait for the address string
- #
- input 30 address
- #
- # parse address
- #
- address 50
- input 50 \n
- #
- # we are now connected, logged in and in slip mode.
- #
- display \n
- display Connected. Your IP address is \i.\n
- #
-
-