[PLUG] Determining Why Perl Script Fails

Rich Shepard rshepard at appl-ecosys.com
Wed Aug 6 14:39:16 UTC 2014


   After changing logwatch.pl to send its reports by mail the script worked
for a few days. Today it failed completely. That is, running from the
command line produces no output in the virtual terminal so apparently
there's nothing to report via mail either.

   Running logwatch.pl via strace produces a 600+K output file with
appropriate pauses when running while the script reads and summarizes log
files. The strace output tells _me_ nothing.

   Considering that logwatch.pl has run faithfully each day for years I
suspect that there's something in the upgrade to version 7.4.0 that is at
the root of the problem.

   There are many perl mongers amoung you and I would appreciate guidance on
determing where the script fails and advice on how to fix it ... finally.

TIA,

Rich



More information about the PLUG mailing list