Mailing List Archive

Expire All - Can not find interchange.cfg
I have set the cron job for expiring sessions (or at least I think I did it
right).

Every evening I have the cron
perl /home/goldget/interchange/bin/expireall -r goldget

I get a cron error email every morning since stating the error;
Couldn't read interchange.cfg: No such file or directory

Is the cron command correct, do I have to place a path for it to find
interchange.cfg? Where is it looking for the interchange.cfg and would a sym
link to the location it is looking help it find it? If I do it that was
would it then have errors finding the 'sessions' directory?

Any help is appreciated?

PS: Still looking for anyone who has got the old feedback form from MV4.* to
work with Interchange 4.6.*, I am getting 500 errors upon 'process-target'
and it gives the error;
/cgi-bin/goldget.cgi/process.html Runtime error: Can't call method
"open_table" on an undefined value at
/home/goldget/interchange/lib/Vend/Data.pm line 872.

Thanks in advance
!~Russ
http://www.goldget.com
Expire All - Can not find interchange.cfg [ In reply to ]
On 9 Jan, MediaServices Network wrote:
> I have set the cron job for expiring sessions (or at least I think I did it
> right).
>
> Every evening I have the cron
> perl /home/goldget/interchange/bin/expireall -r goldget
>
> I get a cron error email every morning since stating the error;
> Couldn't read interchange.cfg: No such file or directory
>
> Is the cron command correct, do I have to place a path for it to find
> interchange.cfg? Where is it looking for the interchange.cfg and would a sym
> link to the location it is looking help it find it? If I do it that was
> would it then have errors finding the 'sessions' directory?
>
> Any help is appreciated?
[DEL]

I get this too. I've solved it! My solution is

create an extra file like (for example)

/home/interchange/bin/cronexpireall

with

# cat bin/cronexpireall
cd /home/interchange
/home/ic/bin/expireall -r

and my crontab -l looks like

# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.vjnfD23002 installed on Tue Jan 9 12:21:32 2001)
# (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.11.2.1 1999/08/29 15:40:42 peter Exp $)
SHELL=/bin/sh
MAILTO=jojo
45 0-23/2 * * * /home/ic/bin/cronexpireall


Good lucks!

BTW:
I'm wondering about the result of expire and expireall.
I've in my catalog.cfg a "SessionExpire 1 hours", but "expire -u -r -c
mycatalogname" isn't working. There are still some session files, wich
is older than 1 hour and still there in the directory "session". What
is the cause? Thanks!

--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671441
45886 Gelsenkirchen FAX: 0209 1671441
Expire All - Can not find interchange.cfg [ In reply to ]
I fixed this on one of our servers just the other day. Here's our line in
cron:

su -c "/usr/local/interchange/bin/expireall -r -f
/usr/local/interchange/interchange.cfg" ic

Take it easy,
-Ron

----- Original Message -----
From: "MediaServices Network" <support@mediaservices.net>
To: <interchange-users@lists.akopia.com>
Sent: Tuesday, January 09, 2001 6:46 AM
Subject: [ic] Expire All - Can not find interchange.cfg


> I have set the cron job for expiring sessions (or at least I think I did
it
> right).
>
> Every evening I have the cron
> perl /home/goldget/interchange/bin/expireall -r goldget
>
> I get a cron error email every morning since stating the error;
> Couldn't read interchange.cfg: No such file or directory
>
> Is the cron command correct, do I have to place a path for it to find
> interchange.cfg? Where is it looking for the interchange.cfg and would a
sym
> link to the location it is looking help it find it? If I do it that was
> would it then have errors finding the 'sessions' directory?
>
> Any help is appreciated?
>
> PS: Still looking for anyone who has got the old feedback form from MV4.*
to
> work with Interchange 4.6.*, I am getting 500 errors upon 'process-target'
> and it gives the error;
> /cgi-bin/goldget.cgi/process.html Runtime error: Can't call method
> "open_table" on an undefined value at
> /home/goldget/interchange/lib/Vend/Data.pm line 872.
>
> Thanks in advance
> !~Russ
> http://www.goldget.com
>
>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users