CronLog v0.1 - a winCron addon


Introduction
I was in need of a simple task scheduler for win95, so I searched the internet for schedulers - and found several ones. Then I found wincron. I really liked the idea of the flat schedule text file (and of course the freeware concept ;). But I disliked the missing function of minimizing it to the system tray. So I made CronIco.
But I wasn't satisfied with the wincron logfile, too. So I made this add on.


How to...?
Launch cronLog with this parameters:

  cronLog logfile [/logsize=x] [/logpath=y] [logfile2 [/logsize=x] [/logpath=y]]...

    logfilethe winCron logfile (complete path, wildcards are allowed)
    /logsize=xmove log file if size exceeds x kb (default=4096)
    /logpath=ymove log file to this path (default=current directory)

CronLog checks the specified logfile and moves it to the /logpath if it exceeds the size of /logsize kb. The moved file will be renamed to *.001 or if already exists to *.002 and so on


Examples
cronLog crontab.txt.log /logsize=100  renames "crontab.txt.log" to "crontab.txt.001" if it exceeds 100 kB
cronLog *.log /logpath=C:\wincron\logs  moves all *.log files to "C:\wincron\logs\" if they exceed the file size of 4096 kB (default value)

You can move more than one file by using wildcards or by adding more log files:

 cronLog crontab.txt.log /logsize=100 /logpath=C:\logs schedule*.log /logsize=20

will move the "crontab.txt.log" to "C:\logs\" if the file size is greater than 100kB and renames all schedule*.log to "schedule*.001" if they exceed the 20 kB file size. Notice that all parameters are evaluated from right to left (so last parameter first), this means that any user defined parameter is valid until it's overwritten by the same parameter name:

 cronLog crontab.txt.log /logsize=5 schedule*.log /logsize=20 /logpath=C:\logs

will move "crontab.txt.log" to "C:\logs" and not to the default directory!!!


Notice
CronLog is not a WinCron specific program. You can use it for all the programs that produce log files but don't manage them by cycling or renaming.
Oh, and one thing i've forgotten to tell you: cronLog does not move the files (or rename them). It creates a new file without thouse blank lines you can find in normal wincron log files - and then deletes the old file. If the old file can't be deleted, cronLog tries to delete the file 3 times with a 5 seconds delay between each try.


Registration
CronLog is inexpensive shareware. It costs only $100. You may register via credit card and... ah. hmm. ok. Hell no, CronLog is a quick and dirty addon (like CronIco) so it's freeware as winCron is (uhm, did i say that wincron is a quick and dirty program, too? No! I didn't. Ok, so move on.)


Download
CronLog.zip (30kb)


WinCron compliance
CronLog was developed and tested with WinCron 1.84


Contact & Disclaimer (copied from wincron.txt ;)
I hope that this program is useful to you. I can make no claim as to this software's stability or value. It is being offered as is. Use at your own risk. If you find it useful, all I ask is that you please email me at cydo@rype.de and if you didnt already done email to the author of wincron at graysteel@erols.com, too, just so I know that it's useful to someone. The Author reserves all copyrights. Permission is granted to any individual or institution to use, copy, or redistribute this executable so long as it is not modified and that it is not sold for profit. Also, feel free to email any suggestions for revisions to the program.


Links
WinCron Home.
CronIco Home.


History
Version 0.1
07:00 p.m. programmed cronlog
07:30 p.m. wrote this html file
08:00 p.m. pumped it on to the internet

Last update 03/23/99 http://www.rype.de/cydo/cronlog/