home *** CD-ROM | disk | FTP | other *** search
- #:
- #:LexNex
- .LOGON
- ############################## LEXUS/NEXUS ##############################
- #
- # This Lexus/Nexus script will connect, log a user in and leave them at the
- # Lexus/Nexus 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 best results, TTY terminal emulation is recommended and used by this
- # script. If the user has no Blast emulation capabilites then delete the
- # set @emulate = "xxx" line. If another emulator is desired, change the
- # following two lines to the emulator of choice and the valid Lexus/Nexus
- # terminal type. Hint: if a VT type terminal is selected, filter out the
- # ^E escape seqence (HEX 05) using a Blast translate table.
- #
- set @emulate = "tty"
- set @termtype = ".tty"
- #
- # 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 established"
- write "LEXUS/NEXUS SCRIPT ABORTED"
- return 1
- end
- #
- #
- reps 4 # try four times
- ttrap 20,"assistance)"
- if @status = "0" # if nothing - return with error
- write "could not obtain initial screen"
- write "LEXUS/NEXUS SCRIPT ABORTED"
- return 1
- end
- #
- #
- .terminal # send the users terminal type
- tsend @termtype
- #
- #
- .log_in # log in
- tsend cr
- ttrap 10,"assistance)","identification number","identification code"
- if @status = "1" goto .terminal
- if @status = "2" # send the user identification number
- if @userid = "" return 0 # if none return control to the user
- tsend @userid
- goto .log_in
- end
- if @status = "3" # send the user identification code
- if @password = "" return 0 # if none return control to the user
- tsend @password,cr
- return 0
- end
- if @status = "0" # if nothing recognized
- if reps # try again
- goto .terminal
- end
- write " could not log in" # else
- write "LEXUS/NEXUS SCRIPT ABORTED" # write an error message
- return 1 # return with error
- end
- return 1
- #
- #.LOGOFF
- return 0
- .UPLOAD
- write "Uploads not available on Lexus/Nexus with this system script"
- return 0
- .TRANSFER
- write "Filetransfer not available on Lexus/Nexus with this system script"
- return 0
- .END
- #:
-