home *** CD-ROM | disk | FTP | other *** search
- #:
- #:TeleTym
- .LOGON
- ######################### TELENET OR TYMNET #############################
- #
- # This Telenet/Tymnet script will connect a user to either of these services
- # without specifing which one you are actually calling. The script will
- # detect the service and leave the user at the respective prompt.
- #
- # 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 "TELETYM SCRIPT ABORTED"
- return 1
- end
- reps 4 # try four times
- ttrap 2,"second wait"
- #
- #
- .first # try and detect telenet or tymnet
- if @baudrate not = "1200"
- tsend "a","@"
- end
- else
- tsend "a",cr
- end
- .second
- tsend cr
- ttrap 8, "TERMINAL=","identifier","@","in:","ame:"
- if @status = "3" or @status = "4" or @status = "5" return 0
- if @status = "2"
- tsend "a"
- ttrap 5,"in:"
- if @status = "1" return 0
- goto .second
- end
- if @status = "1" # telenet detected
- goto .second
- end
- if @status = "0" # if nothing recognized
- if reps # try again
- goto .first
- end
- write "could not get into network" # else
- write "TELETYM SCRIPT ABORTED" # write an error message
- return 1 # return with error
- end
- return 1
- #
- #
- .LOGOFF
- return 0
- .UPLOAD
- write "Uploads not available with this system script"
- return 0
- .TRANSFER
- write "Filetransfer not available with this system script"
- return 0
- .END
- #:
-