home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13g.zip / schedule.doc < prev    next >
Text File  |  1999-06-12  |  2KB  |  46 lines

  1.            Using the SRE-http "scheduling" daemon. 
  2.  
  3. SRE-http has a simple scheduling daemon that will run programs
  4. on a hourly, daily, weekly, or monthly basis.  You specify
  5. what you want to run via the SCHEDULE.CFG file, which is located in
  6. the CFGS\ subdirectory (of your GoServe working directory).
  7.  
  8. Each entry (one line per entry) in SCHEDULE.CFG should have the 
  9. following form:
  10.     frequency prog_name
  11. where:
  12.     frequency: frequency of execution; 
  13.    prog_name: a fully qualified (typically REXX) program to execute
  14.  
  15. The following frequencies are permitted:
  16.   HOURLY -- run in at nn:01 (nn=0..23)
  17.    DAILY -- run it at midnight (12:01 AM)
  18.   WEEKLY -- run it Sunday at 12:01 AM
  19.  MONTHLY -- run it at 12:01 on the first day of a month
  20.  
  21. Examples:
  22.   DAILY D:\GOSERVE\RENLOGS.CMD 
  23.   MONTHLY E:\GOSERVE\MYPROG.CMD Monthly Execution
  24.  
  25. Note that the moment of execution is approximate, but will generally be 
  26. within a few minutes of the noted time.
  27.  
  28. Notes:
  29.      * Scheduled programs will have access to the  SRE-http environment
  30.        variables.
  31.  
  32.      *  The RENLOGS.CMD file is an example of such a scheduled event program -- 
  33.         it will archive the various log files on a scheduled basis (see
  34.         RENLOGS.CMD for details).
  35.  
  36.      * OPTIONAL: You can have an argument list after the fully qualified name.
  37.         For example: SCHED='WEEKLY D:\GOSERVE\FOOBAR.CMD Weekly_Update '
  38.        This argument list will be sent (as one argument!) to the called program.
  39.  
  40.     * Although it is no longer recommended, you can also specify  SCHED 
  41.       entries in SREFLOGS.INI
  42.         SCHED='Hourly d:\foo.cmd'
  43.         SCHED='weekly d:\bar.cmd hello '
  44.         SCHED=0
  45.  
  46.