New Tecumseth Public Library wrote:
> I'm on NetBSD and I'm using Analog 4.1. I have setup a crontab to run
> Analog on the first day of every month to analyze the previous month's
> logs. So for example:
>
> At 12:01am on May 1, Analog will run and analyze the April log files. I
> want to have Analog name my output files in the format monthyear.html.
> How would I setup Analog so it will name the output file with the
> previous month's name (or number)? I'd appreciate any assistance.
On Unix you could use a Perl script to do this, something like
DATE_TAG = `perl -e'@t=localtime;\
print sprintf("%2d%4d",$t[4]+1,$t[5]+1900);'`
./analog +O$DATE_TAG.html
On non-Unix platforms this wouldn't be as easy. You could install Perl and
write a full Perl script or there may be other scripting options (VBScript
and Window Scripting Host?). In anycase, Analog can only insert the current
date in and output filename.
HTH,
Jeremy Wadsack
Wadsack-Allen Digital Group
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------