On Wed, 20 May 2009, Joe Pruett wrote:
> i just looked over the script again, and no where does it actually invoke
> pflogsumm. are you sure you correctly copied the script?
Joe,
I also see that the script checks for /usr/local/bin/pflogsumm, but
thought it then called that in lines 52 or 59. Turns out it is much later --
at the end of the script.
> that open paren probably was to contain the cat, running the program,
> maybe some other gunk and then it would have all been piped to sendmail.
> can you go double check that something didn't eat your program?
Originally there was more after the EOF about missing Date::Calc. Since
that's installed here I removed those lines and, apparently, the closing
parenthesis. And, as it turns out, I cut out too much. The missing lines
are:
LC_TIME=C ${EXECUTABLE} ${OPTIONS} ${LOGFILE} 2>/dev/null
echo "Report ended with status: $?" ) | ${SENDMAIL} ${SENDMAIL_OPTS}
which also fixes the missing closing parenthesis.
A test run worked. However, those missing lines were in the script until I
took them out this morning, and the script still doesn't run each day as it
should.
Thanks very much for prompting me to look more closely at what I cut out.
I'll see if the script runs tomorrow. If not, I'll be back and post the
error log again.
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug