On Wednesday, October 24, 2001, at 06:38 PM, Carolyn wrote:

> On Wed, Oct 24, 2001 at 03:01:25AM -0700, Tom Mornini wrote:
>> in httpd.conf:
>>
>> 1  <Perl>
>> 2    $ErrorLog = 
>> "|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl
>> ERROR";
>> 3  </Perl>
>>
>> 4  ErrorLog "|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl
>> ERROR"
>>
>> Lines 1-3 and 4 should do the same thing. They don't.
>
> I was having this exact problem yesterday, with CustomLog and 
> LogFormat. I
> think it's to do with quotes - try putting single quotes around your
> $ErrorLog value, so apache will still see it as a quoted string.

I too am setting CustomLog, and it takes two or three values. So I set
@CustomLog and everything is fine. I set LogFormat outside the <Perl>
section and have no need to make it dynamic, so I can't comment here.

I worked around this by removing the need for the extra argument for
the program I wanted to pipe to, the 'ERROR' in the above example.
I just wrapped spread_from_stdin.pl with a shell script, and everything
is fine, but I really do suspect that this is a bug.

I don't believe that single quotes -vs- double quotes would make a
difference. Both things end up a single scalar, and I seriously doubt
that Apache can tell the difference...

--
-- Tom Mornini
-- InfoMania Printing & Prepress

Reply via email to