> [r...@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 '' ']'
> + [email protected]
> + 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

i forgot that the main script is running sendmail directly, pflogsum 
doesn't do that.  so you should always get email from running that script, 
even if pflogsum produced no output.  you should also see an entry in 
maillog for that sendmail invocation.  tweak your script and add -v to 
SENDMAIL_OPTS so you can see what it has to say about things.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to