home *** CD-ROM | disk | FTP | other *** search
- #:
- #:Easylink
- .LOGON
- ############################### EASYLINK ####################################
- #
- # This Easylink script will connect, log a user in and leave them at the
- # PTS command prompt. The automatic login process is dependent on
- # the userid and password of the current set up file, if either of these
- # are null the script will return control to the user to complete the log
- # in manually. Hint: watch out for blank characters in these fields. For
- # the userid the user should put in their terminal type, a space and then
- # their Easylink ID. The password should contain the users username, a
- # period and then their password.
- #
- # You may incorporate this script into the systems.scr script, use it as a
- # stand alone systems script or as a regular script. If you choose to insert
- # this script into systems.scr you must make three modifications. When the
- # systems.scr (or modems.scr) files are indexed our index utility is looking
- # specifically for colons; therefore, the # must be deleted from the first
- # two lines and from the last line of this file. Once these items have been
- # changed, copy this script into systems.scr and re-index (See the Users
- # manual for instructions on the index utility).
- #
- ###############################################################################
- #
- #
- connect # make the connection
- if @status not = "0" # if no connection - return with error
- write "connection not estabished"
- write "EASYLINK SCRIPT ABORTED"
- return 1
- end
- reps 3 # try three times
- #
- #
- .begin # try and detect Easylink
- ttrap 10, "ID?", "PTS"
- if @status = "2" return 0
- if @status = "0" # if nothing was recognized
- if reps # and reps try again
- tsend cr
- goto .begin
- end
- write "could not obtain ID prompt" # else
- write "EASYLINK SCRIPT ABORTED" # write an error message
- return 1 # return with error
- end
- #
- #
- .log_in # an ID? prompt was detected, log in
- if @userid = "" return 0
- if @password = "" return 0
- tsend @userid," ",@password, cr # send the log in string
- ttrap 10, "ID?", "PTS"
- if @status = "2" return 0 # ok, return
- if @status = "1" and reps # try again
- goto .log_in
- end
- if @status = "0" # if nothing was recognized
- if reps # and reps try again
- tsend cr
- goto .begin
- end
- write "could not obtain PTS prompt" # else
- write "EASYLINK SCRIPT ABORTED" # write an error message
- return 1 # return with error
- end
- return 1
- #
- #
- .LOGOFF
- tsend "quit",cr
- ttrap 30, "NO CARRIER"
- if @status = "0" return 1
- return 0
- .UPLOAD
- write "Uploads not available on Easylink with this system script"
- return 0
- .TRANSFER
- write "Filetransfer not available on Easylink with this system script"
- return 0
- .END
- #:
-