[Logwatch] Problems with using captial letters for the mailer variable

Chance Delome cdelome at lus.org
Fri Aug 28 10:36:36 MST 2009


This is what I have in the logwatch.conf file

mailer = "/opt/CommuniGate/sendmail"

It still fails. Can I declare this in 0logwatch itself somewhere/somehow?



-----Original Message-----
From: logwatch-bounces at public.kaybee.org [mailto:logwatch-bounces at public.kaybee.org] On Behalf Of Mike Tremaine
Sent: Friday, August 28, 2009 11:49 AM
To: Support; logwatch list
Subject: Re: [Logwatch] Problems with using captial letters for the mailer variable

Support wrote:
> On Wed, 2009-08-26 at 16:11 -0500, Chance Delome wrote:
>   
>> I’m trying to use a different sendmail program
>>
>> /opt/CommuniGate/sendmail. 
>>
>> It appears logwatch isn’t recognizing the capital letters in the
>> string. The error states:
>>
>> [root at cgp-f0 cron.daily]# /etc/cron.daily/0logwatch 
>>
>> Can't exec "/opt/communigate/sendmail": No such file or directory
>> at /etc/cron.daily/0logwatch line 1012, <TESTFILE> line 3.
>>
>> Can't execute /opt/communigate/sendmail: No such file or directory 
>>
>> Any idea on how correct this so the capital letters in “CommuniGate” are recognized?
>>     
>
> Chance,
> can you link /opt/communigate to /opt/CommuniGate?  
> eg, "# ls -s /opt/CommuniGate /opt/communigate"
>
> It's a hack, I admit, but it gets you working until you find the root
> cause and fix that.
>
> -David
>   

The logwatch script lower cases all variables passed to it UNLESS you 
put double quotes around them so just add "/opt/CommuniGate"

-Mike
_______________________________________________
Logwatch mailing list
Logwatch at logwatch.org
http://www2.list.logwatch.org:81/mailman/listinfo/logwatch


More information about the Logwatch mailing list