Hey Rich, Is it possible that the script is running fine, it just legitimately generated no output? What would happen if there was no mail for a particular day?
-Heath On Tue, Apr 21, 2009 at 6:13 AM, Rich Shepard <[email protected]> wrote: > On Wed, 15 Apr 2009, chris (fool) mccraw wrote: > >> you just leave the set -x in place and eventually it fails, and you >> compare the output to a working run. no need to live with it not >> working--just live with it working for the moment =) > > Chris, > > No mail reports Sunday morning. Both reports yesterday morning. No reports > this morning, but the output of the 'set -x' ran just after the midnight > invocation. I see a successful conclusion, but no report delivered to me for > that run or the one in /etc/cron.daily. Sigh. Any thoughts? > > Rich > ------------------------------------------------------------------------- > >From [email protected] Tue Apr 21 00:02:07 2009 > Date: Tue, 21 Apr 2009 00:02:06 -0700 > From: [email protected] > To: [email protected] > Subject: cron: /etc/cron.daily/1pflogsumm > > + '[' -z '' ']' > + '[' -f /var/log/maillog ']' > + LOGFILE=/var/log/maillog > + '[' -z /var/log/maillog ']' > + EXECUTABLE=/usr/local/bin/pflogsumm > + TMPDIR=/etc/postfix > + TMPEXE=pfls.tmp.12666 > + 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 Tuesday, 21 April 2009' > + '[' -z '' ']' > + [email protected] > + SENDMAIL=/usr/sbin/sendmail > + SENDMAIL_OPTS='-oi -t' > + POSTFIX=/usr/sbin/postfix > + trap 'test -r /etc/postfix/pfls.tmp.12666 && rm -f > /etc/postfix/pfls.tmp.12666' 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 > + /usr/sbin/sendmail -oi -t > + LC_TIME=C > + /usr/local/bin/pflogsumm --verp_mung=2 --problems_first --iso_date_time -q > -u 10 -h 10 /var/log/maillog > + echo 'Report ended with status: 0' > + test -r /etc/postfix/pfls.tmp.12666 > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
