home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
beehive
/
bbs
/
disp5.arc
/
DISP5.DOC
next >
Wrap
Text File
|
1990-09-20
|
6KB
|
86 lines
{-------------------------------------------------------------}
{ }
{ ** DISPATCH Utility for Tabby ** }
{ }
{ Program, source code, and doc files are copyrite (c) 1989 }
{ by Phil Hansford. This program is licensed for free }
{ distribution only. You may use this program for any }
{ purpose. If you release a revision to this program, do not }
{ charge for it, and include the source code in your release. }
{ ----------------------------------------------------------- }
{ Phil Hansford }
{ February 2, 1989 }
{ Mysteria BBS }
{ 818-353-8891 (modem) }
{ Fidonet 1:102/943 }
{ }
{-------------------------------------------------------------}
{-------------------------------------------------------------}
{ This is a new version of a DISPATCH program for Tabby }
{ echomail. In combines DISPATCH and REVENT functions in one }
{ program. }
{ }
{ Like its predecessors, this program is written in Turbo }
{ Pascal, and uses a ROS.CLK clock driver include file. It is }
{ also possible to use BYE510 clock inserts as overlays (see }
{ RDCLOCK.LBR to see how this is done). }
{ }
{ The Dispatch program is executed by the Tabby Supervisory }
{ program (such as BYE). It typically reads the clock and }
{ saves values to SYSDATE, and SYSTIME files, then runs the }
{ next event if it is valid. If there is a NXTEVENT file }
{ which is not yet current, DISPATCH chains to BYE. If no }
{ NXTEVENT file is found, or if the window is passed, it }
{ creates a new NXTEVENT file first. }
{ }
{ This version has an added command line timing option. If }
{ you use it without a command line (as 'DISPATCH') it will }
{ operate normally. Or you can add a command line to it which }
{ specifies the number of minutes for a loop ( 'DISPATCH 20' }
{ for example). That option may be used to restrict the }
{ 'KSMAIL -rc' command so as not to exceed the number of }
{ minutes specified. For example, the batch file -- }
{ }
{ KSMAIL -rc }
{ DISPATCH 20 }
{ }
{ will run KSMAIL to send outgoing mail. If a line is busy or }
{ such and KSMAIL can't send all the mail on first try, it }
{ will rename LSTEVENT to NXTEVENT, and dispatch will cause a }
{ loop back to execute the batch again if it is within the }
{ window. However, the 20 minute option in the example above }
{ above, will limit this looping back to no more than 20 }
{ minutes, even if the remaining window is larger. The option }
{ copies SYSTIME information to a temporary DISTIME file, and }
{ checks it on subsequent runs. When the alloted time is used }
{ up, it renames NXTEVENT to LSTEVENT, and deletes the }
{ DISTIME file. This option does not run when NXTEVENTis not }
{ found. If there is a DISTIME file and NXTEVENT is not }
{ found, DISTIME is deleted. Other command line options in }
{ this version include -fx to force an event, and -c to exit }
{ to system (normal exit is to BYE). }
{ }
{ - Gotchas - }
{ }
{ Turbo Pascal is written for the Z80 cpu. This program will }
{ not operate on an 8080 or 8085 cpu. }
{ }
{ Present versions of Tabby can't handle garbage on the }
{ command line at startup. As a result, the Turbo Pascal }
{ execute command will not work properly. We must execute a }
{ Tabby program with either submit or the MCLB (external }
{ multiple command line buffer). Both are used in this }
{ version. The MCLB requires ZCMD, ZCPR, or similar. }
{ }
{ The next event functions utilize a 30 line buffer for the }
{ batch file. If you exceed 30 lines in your batch file, the }
{ program will report an error and abort to BYE. }
{ }
{ The EVENTS.BBS buffer is presently set up for 7 events, and }
{ is unsorted. If you exceed 7 events in the EVENTS.BBS file, }
{ or if your events there are out of order, some events may }
{ be missed, cause system shut down, or cause unpredictable }
{ results. }
{-------------------------------------------------------------}