From: Tim F. <T.F...@bb...> - 2012-11-26 13:09:53
|
Thanks everyone for all the advice. I'm off to meetings but will try to digest it all and have another go later, or tomorrow morning. Best wishes, Tim -----Original Message----- From: Filipe MS Bento (UA) [mailto:fs...@ua...] Sent: 26 November 2012 13:03 To: Tim Fletcher; vuf...@li... Subject: Re: [VuFind-General] Automating updates - cron help PS: Sorry forgot to mentioned that the VuFind 2 sample was from the .bat (as you've probably guessed looking at it). From the .sh, it's the same code, taking a fast look at it, that checks that out in VF1.x: ################################################## # Set VUFIND_HOME ################################################## if [ -z "$VUFIND_HOME" ] then VUFIND_HOME="/usr/local/vufind" fi On Mon, Nov 26, 2012 at 12:57 PM, Filipe MS Bento (UA) <fs...@ua...> wrote: > Actually, if VuFind is installed in the default "/usr/local/vufind" > directory, it shouldn't be necessary to include the full path or > define/export $VUFIND_HOME environment variable, as import-marc.sh > script checks if all the necessary VuFind related environment > variables are set and if they aren't (string length = 0 > "-z" in the > if clause bellow) it defines them to the default value. > > Sample from VuFind 1.x: > > ------ > > ################################################## > # Set VUFIND_HOME > ################################################## > if [ -z "$VUFIND_HOME" ] > then > VUFIND_HOME="/usr/local/vufind" > fi > > ----- > > Sample from VF2: > > -------------- > > if not "!%VUFIND_HOME%!"=="!!" goto vufindhomefound rem VUFIND_HOME > not set -- try to call vufind.bat to rem fix the problem before we > give up completely if exist vufind.bat goto usevufindbat > > --------------- > > So, Tim (et al.) I guess the problem lies somewhere else but like > Jonathan suggested and Luke has ( > /var/log/vufind/update_ifind.log > 2>&1 ), redirecting the output of the script to a log file, checking > should give some insight of what's going on (or not). > > -- Filipe > > > -------------------------- > > Filipe Manuel S. Bento | http://about.filipebento.pt/ |