anyone got experience scripting Analog (the log file analyser)?
anyone got experience scripting Analog (the log file analyser)?
- Subject: anyone got experience scripting Analog (the log file analyser)?
- From: Charles Arthur <email@hidden>
- Date: Wed, 29 Jan 2003 10:49:45 +0000
As the title asks...
Part of my problem (no! challenge!) here is that I'm trying to write a
script that will run in two different environments - OS9.0.4 (not Classic),
and OS X.
Analog is a widely-used program for analysing web server log files. Its
scripting dictionary is pretty bare - just
do script 'text' -- command line to execute. You then have to RTFM in
detail to find out what the command line should say.
I'm using version 5.23, which I think is the latest. What I want to do is
to analyse different log files from different sites, so I need to run
Analog using different config(uration) files. (These config files tell it
what log files to look for, what format they're in, and where to put the
output. I'm OK with this side of things.)
The documentation says that "do script" can give Analog command-line
arguments - such as which config files to use, which in turn will tell it
which log files to analyse. Different config files, different analysis.
This would be fine (easy, even) if I was just in OSX - one could call the
program simply by
do shell script "analog -commandlineargumentsgo here"
and not even have to bother about scripting the program directly. But for
OS9 that's not an option. And solving the problem for OS9 would give a
portable script that would also work in X.
So, has anyone tried this? Or, better, solved it in OS9? I've played around
with suggestions made at
http://macfreebees.tripod.com/readme/analogppc.html but can't find a way to
make it actually run with a different config file - it always seems to use
analog.cfg as its config file, even though the documentation suggests
there's a way to stop this.
Charles
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.