OT: date command for pflogsumm.pl Script - undefined variable

Danny nocmonkey at gmail.com
Thu Oct 21 07:57:28 PDT 2004

I am trying to get this script to run:

day=`/bin/date "+%m-%d-%Y"`
/usr/sbin/pflogsumm.pl -i -mailq --smtpd_stats --problems_first
--iso_date_time -d yesterday /home/user/maillog >
gzip -c /var/log/MX1-PostfixDailyReport.${day} | uuencode
MX1-PostfixDailyReport.${day}.gz | mail -s "`hostname` Daily Mail
Report for `LC_CTIME=C date +\"%A, %d %B %Y\"`" root # gzip

and I know very little about programming (I am working on this), and I
receive the following error:

mx1# ./pflogsumm.test
day=10-21-2004: Command not found.
day: Undefined variable.
day: Undefined variable.

Any suggestions? I just want this script to run and email me the
output of pflogsumm.pl for my maillogs.

Thank you!


More information about the freebsd-questions mailing list