[PLUG] Mail log reporting: cron issue?

Rich Shepard rshepard at appl-ecosys.com
Fri May 22 16:48:58 UTC 2009


On Fri, 22 May 2009, Joe Pruett wrote:

> you wouldn't see the email for the set -x output, that only happens when
> run via cron because stdout/stderr is emailed to you.

Joe,

   Ah, so. That explains it.

> does that log output you just got show that the real pglogsum is being
> run?  if you have that output still, paste it to us.

   Yes, it does, and here it is:

[root at salmo ~]# /etc/cron.daily/1pflogsumm 
+ '[' -z '' ']'
+ '[' -f /var/log/maillog ']'
+ LOGFILE=/var/log/maillog
+ EXECUTABLE=/usr/local/bin/pflogsumm
+ TMPDIR=/etc/postfix
+ TMPEXE=pfls.tmp.26789
+ OPTIONS='--verp_mung=2 --problems_first --iso_date_time  -q -u 10 -h 10'
++ hostname
++ LC_TIME=C
++ date '+%A, %d %B %Y'
+ SUBJECT='salmo Daily Mail Report for Friday, 22 May 2009'
+ '[' -z '' ']'
+ REPORT_TO=rshepard at appl-ecosys.com
+ SENDMAIL=/usr/sbin/sendmail
+ SENDMAIL_OPTS='-oi -t'
+ POSTFIX=/usr/sbin/postfix
+ trap 'test -r /etc/postfix/pfls.tmp.26789 && rm -f
/etc/postfix/pfls.tmp.26789' 0 1 2 3 15
+ '[' '!' -r /var/log/maillog ']'
+ '[' '!' -r /var/log/maillog ']'
++ id -u
+ '[' 0 = 0 ']'
+ '[' -r /usr/local/bin/pflogsumm ']'
+ '[' -d /etc/postfix ']'
+ perl -e 'use Date::Calc;'
+ '[' -x /usr/local/bin/pflogsumm ']'
+ '[' -x /usr/sbin/sendmail ']'
+ cat
+ LC_TIME=C
+ /usr/local/bin/pflogsumm --verp_mung=2 --problems_first --iso_date_time -q
-u 10 -h 10 /var/log/maillog
+ /usr/sbin/sendmail -oi -t
+ echo 'Report ended with status: 0'
+ test -r /etc/postfix/pfls.tmp.26789

Thanks,

Rich



More information about the PLUG mailing list