TITLE "Netcom/Telnet Login Script"
; This is an example of a login script that can be used to log in to
; Netcom (an internet service provider) and execute the TELNET
; program to access a BBS that is connected to the Internet.
; It uses three user-defined script macros: LOGIN, PASSWORD and IPADDRESS.
; To use the script, edit the notes for the BBS (on Robocomm's BBS-
; Directory screen) and input the values for the three macros.
; Enter your unix ID and passwords. For example:
; Next, specify the phone number for the internet service provider in the
; Directory-BBS record, along with the user name and password you use on
; the BBS. When the script finishes, Robocomm's automated access routines
; will take over and log you in to the BBS and execute your scheduled agenda
WHEN "LOGIN INCORRECT" GOTO BADLOGIN
; You will need to modify this waitfor command to include some unique text
; from your unix shell account's command prompt.
MESSAGE "Login successful"
; This WHEN will stay active through all subsequent WAITFORs
WHEN "CONNECT " GOTO SUCCESS
; We want to try the address 3 times before giving up and logging off
; We didn't connect, so log off
MESSAGE "Logging off"
WAITFOR "NO CAR"
MESSAGE "TELNET: Requesting IP Address: %IPADDRESS%"
SEND "telnet %IPADDRESS%|"
WAITFOR "UNABLE " FAILURE GOTO LOST
MESSAGE "TELNET: Unable to connect. Waiting 30 seconds..."
MESSAGE "Timed out waiting for TELNET response. Hanging up..."
MESSAGE "Incorrect password or Login ID."
MESSAGE "TELNET: Connected to %BBS2%"