[PLUG] Possible Causes of Cron Inconsistencies -- FAILURE REPORT

Heath Morrison heath at doublemarked.com
Tue Apr 21 17:26:41 UTC 2009


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 <rshepard at appl-ecosys.com> 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 root at salmo.appl-ecosys.com Tue Apr 21 00:02:07 2009
> Date: Tue, 21 Apr 2009 00:02:06 -0700
> From: root at salmo.appl-ecosys.com
> To: root at salmo.appl-ecosys.com
> 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 '' ']'
> + 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.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
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list