On Sun, Aug 29, 2010 at 11:32 AM, Steven Backus <[email protected]> wrote: >> Perhaps you've built Amanda without indicating the printing utility? > > This was not necessary in the past. The 3hole.ps just "worked." > >> Check the amreport logfile for more detail, and have a look at the >> source to see how it decides whether to generate labels or not. The >> logic hasn't changed, but a rebuild may have altered some of the >> inputs to that algorithm. > > I'll try to figure out more details, here again is the amreport > debug log. It looks like the code is fubared, not that my settings > are incorrect. > -- > > Tue Aug 24 23:59:10 2010: amreport: pid 31955 ruid 0 euid 0 version 3.1.2: > start at Tue Aug 24 23:59:10 2010 > Tue Aug 24 23:59:10 2010: amreport: pid 31955 ruid 0 euid 0 version 3.1.2: > rename at Tue Aug 24 23:59:10 2010 > Tue Aug 24 23:59:10 2010: amreport: using logfile: /usr/adm/amanda/gen/log > Tue Aug 24 23:59:10 2010: amreport: operating in script mode > Tue Aug 24 23:59:10 2010: amreport: warning: Use of uninitialized value in > substitution (s///) at /usr/lib/perl5/site_perl/5.8.8/Amanda/Report.pm line > 856. > > Tue Aug 24 23:59:10 2010: amreport: planned output: human mail root > Tue Aug 24 23:59:10 2010: amreport: planned output: postscript > /local/etc/amanda/gen/3hole.ps printer SteveLaser > Tue Aug 24 23:59:10 2010: amreport: invoking mail app: /usr/bin/Mail -s gen > FAIL: AMANDA MAIL REPORT FOR August 23, 2010 root > Tue Aug 24 23:59:10 2010: amreport: warning: Use of uninitialized value in > numeric gt (>) at /usr/lib/perl5/site_perl/5.8.8/Amanda/Report/human.pm line > 608. > > Tue Aug 24 23:59:10 2010: amreport: warning: Argument "-- " isn't numeric in > numeric eq (==) at /usr/lib/perl5/site_perl/5.8.8/Amanda/Report/human.pm line > 1312. >
Regardless of the real cause of this problem, it seems to be very bad practice to have a sub return a non-numeric value to a test looking for a numeric value. And at the very least, fixing it would clean up the logs from distracting errors. Kind Regards, Chris
