home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
muprg110.zip
/
MUPURGE.DOC
< prev
next >
Wrap
Text File
|
1995-09-09
|
4KB
|
105 lines
MUPURGE / MUPURGEP
Version 1.10
Copyright (c) Bob Swift, 1995. All Rights Reserved.
This program is used to read the Max 3.00 USER.BBS file in the
current directory and purge users based on a combination of access,
number of calls, and days since the last call. Purge criteria are
determined by the Sysop in a control file. The first record in
USER.BBS (usually the sysop) is ignored, as are any records marked as
"Permanent". Records marked as "Deleted" are purged.
The format for using this program is as follows:
MUPURGE [ctlfile] (for DOS)
MUPURGEP [ctlfile] (for OS/2)
Where [ctlfile] is the path and name of the control file (default is
MUPURGE.CTL in the current directory).
Examples: MUPURGE c:\max\misc\usrpurge.cfg
MUPURGEP ctlfiles\mupurge.ctl
MUPURGEP
The program will display a VERY brief set of instructions if it encounters
an error. The following is a list of the error codes returned by the
program:
0 - No errors. Normal termination.
1 - Bad / Extra command line argument.
2 - Unable to open the control file.
3 - No purge criteria specified.
4 - Unable to create the backup files.
5 - Unable to read the input files.
6 - Unable to write the output files.
7 - Unable to write the log file.
When an error is encountered, the program will exit immediately and will
attempt to properly close all files.
Although I have chosen to retain all rights to this program, you are free
to use it under the following conditions:
- You realize that there is NO Warrantee of any sort.
It was tested pretty thoroughly here before release
but who knows what bugs may be lurking within.
- You will not modify the code and release a new version
of the program. I welcome suggestions for improvement
(especially when accompanied by code) but I make no
guarantee of future releases.
- You drop me a note to let me know that you use the
program. That way, I know who to inform if there are
any future releases. Please either send netmail to:
Bob Swift
1:342/5 @ fidonet
or a postcard to:
Bob Swift
5708 - 47th Street
Stony Plain, Alberta
T7Z 1C6, Canada
- If you find the program useful, I ask that you do
something to brighten somebody else's day. Just
exactly what, I will leave up to you.
You may freely distribute this program provided that you distribute only
the complete archive which includes the files:
MUPURGE.EXE - Program File for DOS
MUPURGEP.EXE - Program File for OS/2
MUPURGE.CTL - Sample Control File
MUPURGE.C - 'C' Source Code
MAX_U.H - Maximus User Structures
STAMP.H - Maximus Stamp Structures
TYPEDEFS.H - Maximus Type Definitions
MUPURGE.DOC - Program Documentation
FILE_ID.DIZ - Program Description File
If you run across any bugs with this program, please report them to the
address listed above. Thanks for giving MUPURGE(P) a try.
Bob Swift (1:342/5)
Revision History
----------------
1.00 95/09/06 First release version.
1.10 95/09/09 Added log style option. Removed the code to
read / write the USER.IDX file because it seems
that Maximus rebuilds this file whenever it starts
up, so I don't have to worry about keeping it in
sync. Besides, the code would potentially cause
other problems if the .IDX file was not synchronized
with the .BBS file.