On Tue, Apr 14, 2009 at 6:07 PM, Rich Shepard <[email protected]> wrote: > 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 '' ']' > + [email protected] > + 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? >
depends on the configuration of the crontab. Also the crontab doesn't have the same parsing capability as as Bash, so &> file will get an error were as >file 2>&1 will get stderr and stdout to the file. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
