home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
logcut01.zip
/
LogCuter.Doc
< prev
next >
Wrap
Text File
|
1996-02-07
|
4KB
|
73 lines
LogCutter V1.0
By Mark Taylor (c) TryThat SoftWare
I hate writting docs,so this won't be very long :)
This program is ShareWare,its not crippled in any way,but if after using it for 30 days,
you are required to either Delete it,or Register it,the cost is 5 UK Pounds,10 US Dollars,
or 10 German Marks,My address is at the end of this doc.
As its ShareWare I won't be responsable for ill effects it has on your system,so if it deletes
all your files,then don't blame me,I do use the program,and so far thats not happened to me :)
So whats it do,well the name of the program should give you a clue :0
Well it Cuts down to size all those LogFiles we generate from the various programs that we
run,at the moment the only EXE in this archive is for OS/2 Warp,I need to read the docs
for EMX a little more on how to create a DOS version,thats if anyone wants a DOS version!
For LogCutter to work you need a CFG file,this MUST be called 'LogCuter.CFG' and be in the
same place as 'LogCuter.EXE',apart from that they can be placed any where you like.
I'll now name each command and give a example,anything in [] is optional.
Filenames must be full path names.
Command : Cut FileName [Max Size]
Description : This is the guts of the program,FileName is the file that needs cutting.
Example : Cut G:\Logs\MaxList.Log 100,Cut G:\Logs\Squish.Log
Command : [Log FileName] [Max Size]
Description : LogCutters own LogFile,Max Size that it can be before cutting down,if you don't
want a log kept,don't use this Command
Example : Log G:\Logs\LogCutter.Log 25,Log G:\all_logs\LogCutter.Log
Command : [DefaultSize Max Size]
Description : You can set a Default for your Max Size,LogCutter has a Default of 50KB (50 * 1024)
Example : DefaultSize 25
Command : [StartFromBlank]
Description : Lots of LogFiles have a Blank line,seperating each run,well with this Command,
you can make LogCutter search for a Blank line before it cuts to size,makes the
new file look nicer.
Example : StartFromBlank
Thats all there is to setting LogCutter up,I would advise you to test run it first,before you
put it into your daily CMD file,the only Command you do need to use is 'CUT'.
I'll mention a few things that are'nt in LogCutter and why not,the first is if a Log file thats
in the CFG,but has'nt been created yet then LogCutter will say there is a error,the reason being,
I'm only working from the EMX manual and have'nt found the structures I need to check if the file
is there first (Does that make sense?)
The method used for calculating the new log size is this,if the file size is larger than your set
maximum,LogCutter will take two thirds of this size,and then check again,and it does this untill
the new file size is smaller than your set maximum.
Also there is'nt stacks of error checking built in,if you find you're getting loads of errors
let me know and I'll do a quick debug version.
If you have any ideas or find any bugs then just Netmail me.
Well thats about it :)
**************************************************************************
* Don't forget its SHAREWARE if you use it after 30 days YOU MUST PAY!! *
**************************************************************************
Here is my Home address,and my network ones :
Mark Taylor
1,Hope Villas,
Upper SpringField RD,
Uplands,Stroud.
GLOS GL5 1TF
2:253/35@fidonet
81:444/25@os2net
240:360/317@mercury
160:3/25@uninet