[Logcheck-devel] Bug#311216: logcheck: mails "egrep: Invalid content of \{\}"
John A. Martin
jam at jamux.com
Mon May 30 21:40:34 UTC 2005
>>>>> "Jamie" == Jamie L Penman-Smithson
>>>>> "Re: Bug#311216: logcheck: mails "egrep: Invalid content of \{\}""
>>>>> Mon, 30 May 2005 17:58:30 +0100
Jamie> Hi John,
>> Mail sent by logcheck
>>
>> ,----
>> From: root at lists.jamux.org (Cron Daemon)
>> Subject: Cron <logcheck at lists> if [ -x /usr/sbin/logcheck ]; then
>> nice -n10 /usr/sbin/logcheck; fi
>> To: root at lists.jamux.org
>> Date: Sun, 29 May 2005 18:02:09 -0400 (EDT)
>>
>> egrep: Invalid content of \{\}
>> `----
>>
>> egrep: Invalid content of \{\} `----
Jamie> I can't reproduce this at all, which makes me think there's
Jamie> something different on your system that is causing this
Jamie> bug.
Jamie> ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ squid\[[0-9]+\]:
Jamie> WARNING: found whitespace in HTTP header name {Cache
Jamie> Control: no-cache}$
Jamie> With this rule, egrep parses it fine:
Jamie> D: [1117469713] cleanchecked - dir - /tmp/logcheck.fb7dSc/ignore/spamd
Jamie> D: [1117469713] cleanchecked - dir - /tmp/logcheck.fb7dSc/ignore/squid
Jamie> D: [1117469714] cleanchecked - dir - /tmp/logcheck.fb7dSc/ignore/ssh
Jamie> However, since there is nothing to lose by escaping the
Jamie> {}'s, I've modified that rule in CVS.
Maybe it just depende upon what you depend upon. :)
A mixed box
$ COLUMNS=200 dpkg -l|egrep 'egrep'
ii grep 2.4.2-3
GNU grep, egrep and fgrep.
$ echo foo|egrep 'name {Cache Control: no-cache}$'
egrep: Invalid content of \{\}
A Sid box
$ COLUMNS=200 dpkg -l|egrep 'egrep'
ii grep 2.5.1.ds1-4
GNU grep, egrep and fgrep
$ echo foo|egrep 'name {Cache Control: no-cache}$'
$
HTH
jam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 154 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20050530/25517cba/attachment.pgp
More information about the Logcheck-devel
mailing list