Re: summarize broken in HEAD
[email protected] (John Crisp) Fri, 13 Feb 2015 15:12:16 +0100
| Newsgroups | perl.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
--qGlUuiDqNK0FRKqX22QmkV7iqPAF7NeI4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/01/15 18:10, [email protected] wrote: > summarize is broken, too, in HEAD as well as in commit ee01a07 (2014-12= -22 15:01:12 -0800): >=20 > syntax error at ./summarize line 209, near "$message) > " > syntax error at ./summarize line 211, near "$message)" > Execution of ./summarize aborted due to compilation errors. >=20 > I'm puzzled by the error message though, because I don't see what could= be wrong. >=20 I *think* it is due to a couple of ')' - see the diff below which I think may cure it (note I am a rank amateur at this and could be completely wrong....) I was trying to run this against an older version and that was the first error it threw. [me@home qpsmtpd_scripts]# diff -ruN summarize.pl.orig summarize.pl.new --- summarize.pl.orig 2015-02-13 14:22:15.000000000 +0100 +++ summarize.pl.new 2015-02-13 14:45:04.000000000 +0100 @@ -205,10 +205,10 @@ return 'info', $pid, undef, undef, $message if substr($message, 0, 13) eq 'Listening on '; - return 'err', $pid, undef, undef, $message) + return 'err', $pid, undef, undef, $message if $line =3D~ /at [\S]+ line \d/; # generic perl error print "UNKNOWN LINE: $line\n"; - return 'unknown', $pid, undef, undef, $message); + return 'unknown', $pid, undef, undef, $message; } sub parse_line_plugin { I also note that the log directories depend on $qpdir which would seems to assume that the logs are elsewhere than /var/log However, as the script also depends on other things like registry.txt and therefore on other files in qpsmtpd/log which I do not have as my version is too old, I never went further in hacking it to make it work. B. Rgds John --qGlUuiDqNK0FRKqX22QmkV7iqPAF7NeI4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU3gZAAAoJEE8bo8Tv0FrJLRsIANlL7JETx2O41xE/gmLSEa8i VKqLkLGcuAsWAiEmp/UgBp35UgODWSEq0X7KlQANiF3iF1SQOFMHbyPT23I9KPka X4E+jJ5kuML2Q9vkUsPUz+NH/cQHDjiD2pTbZmc+/EDFVPvfVrYNLCpOhD/A2iV/ mziov2p33a9p8vx3uPBZGjYn9scGu+h2i6VO2hC0wN4QOdEDXJnElyRp1tiuo/mn 7o86q9/TfzXW+ByDw520+RxMi2sOnQrLc9PzjmgJrWDFNqY6lsDq/N2XpM1TnyzD p6R8Wc/19HF69X4qox39QVi2K1HV4xU+SkppDtoVCa97vHocsZet2IEkwjX+MnI= =+dZI -----END PGP SIGNATURE----- --qGlUuiDqNK0FRKqX22QmkV7iqPAF7NeI4--