home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
srev13h.zip
/
events.cfg
< prev
next >
Wrap
Text File
|
1999-10-31
|
3KB
|
63 lines
;This is the SRE-http "events" configuration file
;See EVENTS.DOC for a full description.
;
;Basic Structure of file:
; Event descriptions are seperated by blank lines.
; Lines beginning with ; are comments, and are ignored.
; Event descriptions have two fields, a TYPE and an ACTION field. An
; optional third field, RETAIN, can also be specified.
; Note that the these fields, etc. are case insensitive.
; Alive events are executed in order of appearance.
;
;Description of fields:
; type: FILE xxx, SEMAPHORE xxx, or PROCEDURE xxx arg
;
; Where xxx is one of:
; file: fully_qualified file name (a "temporary file")
; semaphore: valid semaphore (must being with \SEM32\)
; procedure: fully qualified filename (an external REXX procedure)
; arg is optional -- it is sent to the external rexx proc
; If it returns a 1, then the "event occured".
;
; action: RESET, SHUTDOWN, SUSPEND, RESUME, INTERPRET zzz,
; CALL zzz arglist , EXEC zzz
;
; RESET: reset sre parameters (re-read parameter files)
; SHUTDOWN: shutdown GoServe (using the GoServe CLOSE directive)
; SUSPEND: refuse further connections
; RESUME: cancel a SUSPEND (start accepting further connections)
; INTERPRET: zzz is "interpretable" REXX code, which can span
; multiple lines
; zzz can occupy multiple lines
; CALL: zzz is a fully qualified name of an external REXX procedure
; arglist is an "argument" the procedure is called with
; EXEC: zzz is a fully qualified name of an executable, or batch, file
;
; retain: YES or NO
; If RETAIN: YES, then do NOT reset a semaphore, and
; do not delete a temporary file
; If RETAIN: NO, then do reset (or delete).
; The default is RETAIN: NO.
;
;Example:
;
; Type: SEMAPHORE \SEM32\SHUTDOWN_1
; Action: shutdown
;
; Type: F e:\goserve\flags\flag.1
; Action: Call e:\goserve\flagdo.cmd 1
; Retain: Yes
;
; ; note: be sure to end each "line", of a block of interpretable REXX code,
; ; with a semi-colon
; Type: Procedure check_time
; Action: interpret atime=time('n') ;
; adate=date('n') ;
; call pmprintf("Today's date is: "||atime||' '||adate)
;
; P: the external procedure will be called (with no arguments).
;
; ------- End of description -----------------------------------------------