[PLUG] Possible Causes of Cron Inconsistencies

Rich Shepard rshepard at appl-ecosys.com
Wed Apr 15 01:07:08 UTC 2009


On Tue, 14 Apr 2009, chris (fool) mccraw wrote:

> while that was my guess as to what's wrong, "set -x" will debug a
> plethora of problems.

   OK. I just made the addition and manually ran /etc/cron.daily/1pflogsumm.
Output is below (and it was successful):

+ '[' -z '' ']'
+ '[' -f /var/log/maillog ']'
+ LOGFILE=/var/log/maillog
+ '[' -z /var/log/maillog ']'
+ EXECUTABLE=/usr/local/bin/pflogsumm
+ TMPDIR=/etc/postfix
+ TMPEXE=pfls.tmp.8214
+ 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, 14 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.8214 && rm -f
/etc/postfix/pfls.tmp.8214' 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.8214

   Now, if it doesn't run tonight (while I'm logged off the system), where
will this stdout information end up? Shouldn't I redirect it to a disk file?

Thanks,

Rich



More information about the PLUG mailing list