Mailing List Archive

Error with Expireall
Hello,

I just set up a brand new CentOS 6 box with the latest stable IC. I have the
carts I transferred to it working properly, best I can tell. However, with
the daily cron job, I am getting this:

Cron <root@hostname> /usr/local/interchange/bin/expireall -r
all headers

Use of uninitialized value $, in concatenation (.) or string at (eval 133)
line 2, <CONFIG> line 36.
Use of uninitialized value $, in concatenation (.) or string at (eval 139)
line 2, <CONFIG> line 51.
Use of uninitialized value $, in concatenation (.) or string at (eval 133)
line 2, <CONFIG> line 544.
Use of uninitialized value $, in concatenation (.) or string at (eval 139)
line 2, <CONFIG> line 559.
Use of uninitialized value $, in concatenation (.) or string at (eval 133)
line 2, <CONFIG> line 544.
Use of uninitialized value $, in concatenation (.) or string at (eval 139)
line 2, <CONFIG> line 559.

Why might this be? I did determine that each cart seems to be good for two of
the error messages. The first one is the cart I moved over, the second two
were created as demos from the new system.

I looked into the catalog.cfg of the old cart I copied over, and line 36 is
actually blank. Line 37 says: ParseVariables Yes

LIkewise, line 52 is under a ifdef CACHEDIR, and is:
ScratchDir __CACHEDIR__/tmp


Bob

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Error with Expireall [ In reply to ]
Quoting Bob Puff (bob@nleaudio.com):
> Hello,
>
> I just set up a brand new CentOS 6 box with the latest stable IC. I have the
> carts I transferred to it working properly, best I can tell. However, with
> the daily cron job, I am getting this:
>
> Cron <root@hostname> /usr/local/interchange/bin/expireall -r
> all headers
>
> Use of uninitialized value $, in concatenation (.) or string at (eval 133)
> line 2, <CONFIG> line 36.
> Use of uninitialized value $, in concatenation (.) or string at (eval 139)
> line 2, <CONFIG> line 51.
> Use of uninitialized value $, in concatenation (.) or string at (eval 133)
> line 2, <CONFIG> line 544.
> Use of uninitialized value $, in concatenation (.) or string at (eval 139)
> line 2, <CONFIG> line 559.
> Use of uninitialized value $, in concatenation (.) or string at (eval 133)
> line 2, <CONFIG> line 544.
> Use of uninitialized value $, in concatenation (.) or string at (eval 139)
> line 2, <CONFIG> line 559.
>
> Why might this be? I did determine that each cart seems to be good for two of
> the error messages. The first one is the cart I moved over, the second two
> were created as demos from the new system.
>
> I looked into the catalog.cfg of the old cart I copied over, and line 36 is
> actually blank. Line 37 says: ParseVariables Yes
>
> LIkewise, line 52 is under a ifdef CACHEDIR, and is:
> ScratchDir __CACHEDIR__/tmp

Are you sure you even want to run expireall? I think most people nowadays
just use the clean_session_tmp script. The 480 means about 8 hours, and
I use 4 days in a lot of cases which is 5760.

#!/bin/sh

if test X$1 = X-v
then
VFLAG=-v
shift
fi

for DIR in $*
do
for i in session tmp
do
if test -d $DIR/$i
then
find $DIR/$i -type f -mmin +480 | xargs --no-run-if-empty rm $VFLAG
find $DIR/$i -depth -mindepth 1 -type d -empty | xargs --no-run-if-empty rmdir $VFLAG
else
echo "$0: $DIR/$i doesn't exist."
fi
done
done


--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.253.4194 <mike@perusion.com>

"It is a remarkable fact that despite the worldwide expenditure of perhaps
US$50 billion since 1990, and the efforts of tens of thousands of scientists
worldwide, no human climate signal has yet been detected that is distinct
from natural variation." - Bob Carter

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users