home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix CD 2.0
/
Phoenix_CD.cdr
/
01e
/
logmngr.zip
/
LOGMNGR.DOC
next >
Wrap
Text File
|
1988-02-09
|
6KB
|
90 lines
LOGMNGR maintains a BBS (or other) log file. It is essentially a driver that
is called on a daily basis to perform the following:
1) renames the log to prefix.DDD (DDD is julian day)
Prefix is taken from the name of the log being processed. For
example, if you are maintining the BINKLEY log, BINKLEY.LOG, the name
generated will be BINKLEY.DDD.
2) add the days log to archive LOGmmmyy.ARC by calling Phil Katz'
PKARC.COM program. This must be in the DOS search path. It is not
included with this archive.
3) creates a new log with a time stamp
SYNTAX:
LOGMNGR configpathname
LOGMNGR was written to be used with Binkley, hence the defaults.
There is no reason it can't be used for other things. The config file
used by LOGMNGR defaults to BINKLEY.CFG in the current directory or
the path specified on the BINKLEY environment parameter. You can
override this by specifying a fully qualified path and file name
on the command line when you invoke LOGMNGR. Some Examples:
COMMAND LINE RESULT
LOGMNGR Uses BINKLEY.CFG from the current
directory (if present) or from the
path specified by the BINKLEY
environment variable. The BINKLEY
variable must end in "\" if it is to
be used.
LOGMNGR LOGMNGR.CFG Uses LOGMNGR.CFG from the current
directory as the config file
LOGMNGR \fred\BINKLEY.CFG Uses BINKLEY.CFG from the directory
\FRED\ as the CONFIG file.
LOGMNGR searches the config file for two control cards. The first is a
standard BINKLEY control card, "Statuslog". It is the name of the log
file to be managed. It is of the form:
Statuslog logfilename
Statuslog MUST begin in column one!
The second is a special LOGMNGR control card, ";LOGDIR"
It must also begin in column one and must start with a semi-colon.
This causes Binkley to treat it as a comment. It specifies the
directories to hold the archived logs. It has the following format:
;LOGDIR pathname
It must also start in column 1. In both cases there must be ONE AND
ONLY ONE space between the operator (e.g. ";LOGDIR") and the operand
(e.g. pathname).
The philosophy intended for LOGMNGR (at least the one the author
uses) is that the day's log will be archived automatically once per
day. (I have an external BINKLEY event at midnight each day.) This
philosophy is reflected in the names that LOGMNGR generates for the
logs and the archive that hold them. They are noted above in the
introduction. Note that the archive BINyymmm.ARC will be placed in
;LOGDIR path if one is specified otherwise they will be in the current
directory. The new log file will be in the directory where the old
one was found.
LICENSE
LOGMNGR is COPYRIGHT 1988 D. A. Freeman. You are granted a limited
license to use it for non-commercial purposes. You are also welcome to
distribute it in an unmodified fashion so long as no fee is charged.
Comments and/or suggestions may be forwarded to the author at Fidonet
node 223/128 (continuous mail) or to:
D. A. Freeman
Freeman Software Services
P. O. Box 7430,
Oakville, Ontario
L6J 6L6
If you find this program to be of use, please send a note of thanks to
the author (netmail or post). If you find it to be of value, you are
requested to make a donation to a non-denominational charity dedicated
to helping children or youths in the author's name.