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

2004-10-21 Thread Kevin D. Kinsey, DaleCo, S.P.
Danny wrote: 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 /var/log/MX1-PostfixDailyReport.${day} # gzip -c /var/log/MX1-PostfixDailyReport.${day} | uuencode

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

2004-10-21 Thread Frank Laszlo
Kevin D. Kinsey, DaleCo, S.P. wrote: Danny wrote: 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 /var/log/MX1-PostfixDailyReport.${day} # gzip -c

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

2004-10-21 Thread Danny
On Thu, 21 Oct 2004 14:35:07 -0400, Frank Laszlo [EMAIL PROTECTED] wrote: Sounds like *NOT* /bin/sh. try adding: #!/bin/sh to the top of the script. Thanks Frank, the script has other incompatibilities with my config, so I just ended up editing /etc/crontab and added: