[analog-help] Too many arguments error
Aengus
analog at eircom.net
Sun Jul 30 17:18:31 PDT 2006
On Saturday, July 29, 2006 9:43 AM [EDT],
Sean at IMAGINET at home <sean.jones at imaginet.co.uk> wrote:
> On Friday 28 July 2006 22:13, Eugene Yang wrote:
>> When I run analog in dos prompt, I get this:
>>
>> C:\analog_60w32\analog 6.0>analog
>> analog: analog version 6.0/Win32
>> analog: Warning C: Too many arguments for configuration command:
>> ignoring end
>> of line starting:
>> LOGFILE D:\Program Files\Apache
> ...
>> In my analog conf file:
>> LOGFILE D:\Program Files\Apache Group\Apache2\logs\access_log.*
> ...
>> However, if I were to move some of the logfiles to anothet location
>> other than Apache Group, the report works fine.
>> Does Analog have a llimitation on how many subdirectories are
>> allowed for the logfiles location? What am I doing wrong?
>
> Have you tried putting the whole filepath in quotes (as DOS is likely
> choking on the spaces within the foldernames)?
You're right that the problem is the space in the logfile name, but it's not
a DOS problem - D:\Program is not a log file, whether you run Analog on DOS,
Unix or a Mac. Analog uses spaces to delimit it's arguments, so if there's a
space in the argument, you have to quote the argument.
http://analog.cx/docs/syntax.html#commandsyntax
"Each command consists of the command name followed by one or two arguments.
An argument to a command may optionally be placed in single or double quotes
or parentheses, and it must be if the argument contains a hash or a space"
To answer Eugenes question, Analog doesn't have any limit on how many
directories deep the logfile may be, but there is a limit to the length of
an entry in a configfile. But you should run up against that limit (254
characters) under normal circumstances.
Aengus
More information about the analog-help
mailing list