Script Errors

From: Don Joy <[email protected]>
Date: Wed, 14 May 1997 21:07:26 -0400

I have the following script that i'm getting errors on. When i run it i
get a number of errors.

#!/bin/sh -
#
# squid.weekly.sample,v 1.2 1996/12/10 04:50:01 dlu Exp
#
# Sample weekly cleanup script for squid, to be run from /etc/weekly.

PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec:/usr/contrib/bin:/var/www/squid/bin
export PATH
LOG=/var/log/squid

if [ -f $LOG/cache.log ]; then
        echo "Summarizing squid logfiles:"
        cd /var/www/squid/bin
        access-extract.pl < $LOG/access.log > $LOG/summary
        access-extract-urls.pl < $LOG/access.log >> $LOG/summary
        access-summary.pl < $LOG/summary > $LOG/report.log
fi

exit 0

Here are the individual commands and my output:

access-extract.pl < /var/log/squid/access.log > /var/log/squid/summary
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.
Attempt to free non-existent shared string at
/var/www/squid/bin/access-extract.pl line 113, <> chunk 26503.

access-extract-urls.pl < /var/log/squid/access.log >>
/var/log/squid/summary
dbmopen: Inappropriate file type or format

access-summary.pl < /var/log/squid/summary > /var/log/squid/report.log
<this one runs ok>

Anyone else seen this behaviour? BTW, line 113 is this:

                $n > 1 ? push(@counts, $n) : delete ${$h0}{$k};

-- 
Don Joy
System Administrator
SooNet Corp
Received on Wed May 14 1997 - 18:12:38 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:11 MST