home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
srev13g.zip
/
schedule.doc
< prev
next >
Wrap
Text File
|
1999-06-12
|
2KB
|
46 lines
Using the SRE-http "scheduling" daemon.
SRE-http has a simple scheduling daemon that will run programs
on a hourly, daily, weekly, or monthly basis. You specify
what you want to run via the SCHEDULE.CFG file, which is located in
the CFGS\ subdirectory (of your GoServe working directory).
Each entry (one line per entry) in SCHEDULE.CFG should have the
following form:
frequency prog_name
where:
frequency: frequency of execution;
prog_name: a fully qualified (typically REXX) program to execute
The following frequencies are permitted:
HOURLY -- run in at nn:01 (nn=0..23)
DAILY -- run it at midnight (12:01 AM)
WEEKLY -- run it Sunday at 12:01 AM
MONTHLY -- run it at 12:01 on the first day of a month
Examples:
DAILY D:\GOSERVE\RENLOGS.CMD
MONTHLY E:\GOSERVE\MYPROG.CMD Monthly Execution
Note that the moment of execution is approximate, but will generally be
within a few minutes of the noted time.
Notes:
* Scheduled programs will have access to the SRE-http environment
variables.
* The RENLOGS.CMD file is an example of such a scheduled event program --
it will archive the various log files on a scheduled basis (see
RENLOGS.CMD for details).
* OPTIONAL: You can have an argument list after the fully qualified name.
For example: SCHED='WEEKLY D:\GOSERVE\FOOBAR.CMD Weekly_Update '
This argument list will be sent (as one argument!) to the called program.
* Although it is no longer recommended, you can also specify SCHED
entries in SREFLOGS.INI
SCHED='Hourly d:\foo.cmd'
SCHED='weekly d:\bar.cmd hello '
SCHED=0