home *** CD-ROM | disk | FTP | other *** search
- # SEND.SCR
- #
- # This BLASTscript sends files in the background that were queued
- # up in the forground through the SEND.BAT MS-DOS batch file.
- #
- # The BLASTscript CHK4FILE.SCR is called and returns only when there
- # is a file that needs to be sent. What is returned by CHK4FILE.SCR
- # is the name of a file that is in the BLAST Command File format.
- #
- #
- #
- EFWAIT ON
- #
- set @GROUND = "FOREGROUND"
- set @InEF = "0" # set to "1" when in BLAST Transfer
- set @Lsync = "0" # set to "1" when outstanding local msg
- set @Rsync = "0" # set to "1" when outstanding remote msg
- set @Waiting = "0" # set to "1" when Waiting for loc/rem msgs
- #
- call Chk4File # wait for a file to be sent
- .eftrans
- Filetransfer # start up file transfer (must have system type defined)
- If @EFERROR not = "0" goto .errlgn # check for error logging on
- EFWAIT # wait for remote BLAST message
- set @InEF = "1" # now we are in Error-Free Mode
- .again
- File # Tell BLAST that we have a command file
- @EfFile # and give the command file's name
- #
- # send a message to the remote for
- # script file sync.
- #
- m
- LSYNC1
- #
- # get a message from the remote for
- # script file sync.
- #
- g
- ;RSYNC1
-
-
- # Must have two blank lines after the ;RSYNC because we are faking out
- # a GET FILE command to tell the remote to send me a message
- #
- #
- let @Lsync = @Lsync + 1 # indicate that the message is being sent
- let @Rsync = @Rsync + 1 # indicate that the message is being rcv'd
- set @Waiting = "1" # indicate that we are waiting on messages
- call Chk4File # check for another command file
- if @InEF = "0" goto .eftrans # if not in Error-Free mode restart
- goto .again # go give BLAST the name of a new command file
- #
- #
- # Error handling for Filetransfer logon would go here
- #
- .errlgn
- Display "Can't log onto remote system"
- quit
-