Rich Shepard wrote:
> On Wed, 20 May 2009, Joe Pruett wrote:
> 
>> send the script log again now that you've fixed the error.
> 
>    Here it is, Joe:
> 
> + '[' -z '' ']'
> + '[' -f /var/log/maillog ']'
> + LOGFILE=/var/log/maillog
> + EXECUTABLE=/usr/local/bin/pflogsumm
> + TMPDIR=/etc/postfix
> + TMPEXE=pfls.tmp.19894
> + 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 Wednesday, 20 May 2009'
> + '[' -z '' ']'
> + [email protected]
> + SENDMAIL=/usr/sbin/sendmail
> + SENDMAIL_OPTS='-oi -t'
> + POSTFIX=/usr/sbin/postfix
> + trap 'test -r /etc/postfix/pfls.tmp.19894 && rm -f
> /etc/postfix/pfls.tmp.19894' 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;'

Try removing the '2>/dev/null' portion from the line in the script and 
rerun.  I script seems to be testing if Date::Calc exists and 'if not' 
do some other stuff.  What are the results of perl -d 'use Date::Calc'.

Also check of you have multiple versions of Perl installed.  You logged 
in as root may have a different path than cron does so gets the "Wrong 
Perl". (Apologies to Nick Park)



\\||/
Rod
-- 
> + '[' -x /usr/local/bin/pflogsumm ']'
> + '[' -x /usr/sbin/sendmail ']'
> + cat
> To: [email protected]
> Subject: salmo Daily Mail Report for Wednesday, 20 May 2009
> 
> Report based on information in /var/log/maillog
> + test -r /etc/postfix/pfls.tmp.19894
> 
>    Looks just fine; nothing shows up in my inbox.
> 
>    I wonder if this is related to the apparent procmail issue I'm still
> fighting: postfix reports it handed off an incoming message to procmail,
> procmail has nothing in its log, the message is not delivered ... Apparently
> not. I see no message from root to me since 06:09am today.
> 
> Rich
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to