home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
12B
/
SLOG.ZIP
/
SLOG.DOC
< prev
next >
Wrap
Text File
|
1991-08-13
|
5KB
|
172 lines
DISCLAIMER :
This program is distributed (AS IS) I will guarantee nothing.
I will not be responsible for any problems with your system due to the use
of this program .
This program has been tested , and WORKS , however improper use could
result in lost DATA . Please read and Understand the usage of this program
before you use it .
You should also understand the usage of the archive type you chose to store
your logs in IE: PKZIP , LHARC , Etc.
WHAT IT DOES :
Store Log is a program I wrote to archive the logs on my BBS each day in
an event . The program will archive and store the log under the current
date and then delete your original log file (optional).
EXAMPLE :
The date is 08-08-1991 and I want to archive my Remote Access log it
would look like this .
SLOG C:\RA\LOG\RA.LOG
The program would look in my directory c:\ra\log\ for a file name
RA.LOG and archive it as 08-08-91.ZIP, (USING PKZIP AS THE ARCHIVE'R) .
You don't have to use Pkzip if you don't want to you may use any other
archive'r you like (refer to the SLOG.CFG file for more information).
DELETE:
Then the program will delete the original log file (this is optional)
if you keep the old file the next time the program, is run it will
archive the same data defeating the purpose of SLOG .
If you do not want to delete the original file you would put
DELETE,OFF on the line in the SLOG.CFG file
ARCHIVE:
When choosing an archive'r other than PKZIP you may have to also include
other data the program needs to create the archive .
lharc would need (LHARC A) on the config line marked Archive .
(Please read the DOC'S for the archive'r you use)
IE: ARCHIVE,LHARC A
It is also important (NOT) to run the program more than once a day
(for each file archived) . If you ran SLOG at 12:00 archiving
Dbridge.log , and ran it again at 23:59 for Dbridge.log it would
over write the old part of the log .
You can run it as many times as you like with different file names .
If you do this I would use the Update command in the the archive'r
sample line in SLOG.CFG, ( Archiver,PKZIP -U ) .
I run it for three log files ,Dbridge.log,Binkley.log , and Ra.log
it will create one file with the current date as it's name ,and store
each of the three files in the (ONE) Archive .
You would have to run the program three times , once for each log to
be added to the archive .
EXAMPLE :
c:
cd\logs
slog c:\db\log\dbridge.log
slog c:\binkley\binkley.log
slog c:\ra\ra.log
c:
cd\db
This would (using PKZIP -U) go to the area I store my dated archived
files in , create one archive with the current date IE: XX-XX-XX.zip
store the three files in the archive , then return to original directory.
NOTE :
When the program is run the archive will be placed in the directory
where the SLOG is run from . This is why I change my directory to
C:\logs\ (you should have SLOG in this directory), it also lets me view the
logs easier when researching problems.
Also you should have a path to the Archiver you are using .
EXAMPLE :
AUTOEXEC.BAT
path= c:\;c:\dos;c:\pkzip
If you don't understand how the path statement works please read your
DOS Manual for more information .
LOGNAME:
This is the name of a log file SLOG will append to each time it is run
It will put the date time , and file name that is stored .
NOTE:
If you use (NONE) for the logname then SLOG will not create a log
file , LOGNAME,NONE in SLOG.CFG will not create a Log of its use.
Sample slog.cfg :
; *** Please make note of the comma's they have, to be in this file ***
; *** and must be just before the option IE:( ARCHIVE,PKZIP -U ). ***
;
; Archive is the type of archive you want
;
; This can be any Archiver you want but you must put the complete
; Command line in with the name .
;
; lha211 a -m
; PKZIP -U
; pak a
; Pkarc a
;
ARCHIVE,PKZIP -U
;
; delete is the command to tell slog to delete the log after archiving
; the default is to delete the old file .
; options are ON and OFF
;
DELETE,ON
;
; logname is the name of the file that slog will create/append
; when it is run . If you use NONE then no log will be made .
;
;
LOGNAME,SLOG.LOG
;
;
END
Please remember this program is SHAREWARE , and you are required to
Register your copy after the 30 day trial period .
All money that is collected will be used in the local school system,
and will be used to help students with reading problems .
I will make nothing on this program , but you are encouraged to send
anything you can , it will help the Kids that really need help .
Remember to invest in our children , you are investing in our Future .
Send donations payable to (Center Woods School)
C/O Jim Webb
Route 4 , Box 505B
Weare , Nh. 03281
no amount to small :)
Comments welcome Jim Webb
603-529-4290 FidoNet 1:132/137 (14.4k HST/DS/V.32/V.42)
603-529-3395 Fidonet 1:132/136 (2400 BPS)