home *** CD-ROM | disk | FTP | other *** search
- #:
- #:Tymnet
- .LOGON
- ############################## TYNMET #################################
- #
- # This tymnet script will connect and leave a user at the tymnet log in
- # prompt. When entering tymnet this script enters an 'a' for the
- # identifier.
- #
- # 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 "TYMNET.SCR ABORTED"
- return 1
- end
- reps 4 # try four times
- ttrap 2,"second wait"
- #
- #
- .identifier # send indentifier
- tsend "a"
- ttrap 5, "identifier", "in:"
- if @status = "2" return 0
- if @status = "1" goto .identifier
- if reps # if nothing recognized
- tsend cr # try again
- goto .identifier
- end # else
- else # return with error
- write "could not obtain log in"
- write "TYMNET SCRIPT ABORTED"
- return 1
- end
- #
- .LOGOFF
- return 0
- .UPLOAD
- write "Uploads not available on tymnet with this system script"
- return 0
- .TRANSFER
- write "Filetransfer not available on tymnet with this system script"
- return 0
- .END
- #:
-