home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
sysutils
/
logsave
/
logsave.doc
next >
Wrap
Text File
|
1992-04-01
|
5KB
|
147 lines
LogSave
Log File Archiving Utility
Version 1.02
Dave Fisher
LiveNet, 1:170/110@fidonet
Description
LogSave is a program that can be run on a daily basis to
automatically save log files to an archive. The files will be
inserted to the archive in the format of <basename>.nnn, where
'nnn' is the next number in sequence if there are already
previous logs in the file, and 'basename' is the original name
of the log file (less, of course, the file extension).
Currently, it is not possible to choose your favorite
archiver. It is fixed to use PKZIP, which must exist in your
current directory, or a directory specified in the PATH
environment variable.
LogSave is a 'bound' program, so it can run in either DOS or
OS/2 with no modification.
Usage
LogSave [Archive_File_Name]
/LogFiles=( LogFileName, LogFileName, ... )
/[No]Backup Default: NoBackup
/[no]Quiet Default: NoQuiet
/[no]Kill Default: NoKill
/TempFile=<filename> Default: LogSave.$$$
Notes on the syntax:
Qualifiers can appear in any order, and are only
significant to four characters. Thus, /TempFile is the
same as /Temp.
Disclaimer!
This program is shareware. There is absolutely no warranty
for this program or guarantee that it will work. The user of
the program assumes all risk. While I feel confident that
this program will not harm your system in any way, by using
this program, you agree to assume full responsibility for any
adverse effect to your system.
Ok. Now with that out of the way -- please send me mail and
let me know if you are using LogSave! I'd like to get an idea
of whether this program has been useful for others, as it has
been for me. Also, please send any comments and/or problem
reports. I can be reached at:
Dave Fisher
1:170/110@fidonet.org
Parameters
LogFileName
----------------------------------------------
This parameter is a fully qualified path of the log file, or
if the log file is in the current directory, just the log name
itself.
You can include up to 25 different log file specifications.
Separate each log file with a comma.
/[no]backup
----------------------------------------------
If you specify /Backup, LogSave will create a <logfile>.BAK
file after the successful archival of the log file. I run
LogSave each day at midnight, and have found this useful if I
want to quickly look at yesterday's log, and not have to
bother to uncompress it from the archive. The backup file
will be created in the same directory as the original log
file.
/[no]quiet
----------------------------------------------
This qualifier controls whether the program should emit an
printed output. If /Quiet, the only output will be the
program copyright line. The default is /NoQuiet.
/[no]Kill
----------------------------------------------
If LogSave detects a successful compression of the log file,
you can specify /Kill to have LogSave automatically delete the
log file. The file will *not* be deleted if it was not
successfully archived.
/[no]TempFile
----------------------------------------------
LogSave needs the use of a temporary file. It will normally
be very small, and will be deleted after LogSave is finished
with it.
Example
The following example is broken apart on several lines for
display reasons. It would be entered on one line when
actually executed.
LogSave c:\bbs\logs\logs.zip
/kill
/logfiles=( c:\bbs\max\system\max01.log,
c:\bbs\logs\binkley.log,
c:\bbs\logs\bbs.log )