On Fri, 22 May 2009, wes wrote: > I haven't been following this little adventure of yours all that closely, so > please forgive me if this has been suggested before. > > What about putting a statement in the 1pflogsumm script itself to log to a > file each time it is run? You could stick something like the following near > the beginning:
Wes, Joe suggested this a few weeks ago and there is such a statement: set -x > log_error.txt 2>&1 It runs, the log_error.txt file is mailed to me (so commands further in the script are processed), and it reports the script exited successfully. > Then at least you can eliminate cron as a possible suspect. All other scripts in /etc/cron.daily (such as logrotate, logwatch, and slocate) run each day as expected. I think -- and may well be wrong in my thinking -- that the key questions are: 1) Why does cron sometimes run the script from root's crontab at 00:02 but not from within /etc/cron.daily at 04:40; sometimes the latter but not the former; sometimes both; sometimes none. 2) Why, when the script is run, the log_error report is mailed to me but the actual mail log summary report is not. From what I see in the mail log and procmail log, if the error log and/or log summary reports are run they are mailed to me and properly placed in my inbox. Thanks, Rich _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
