X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=bin%2Firspy-update.sh;fp=bin%2Firspy-update.sh;h=fea275880fbcf32a51100bd0c5784f9e500d9b72;hp=0000000000000000000000000000000000000000;hb=1e9645561322ce22c8366f0126127bf97731e7eb;hpb=0b7a8e5c382875f15fb45da646e1a504b2c6d8b1 diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh new file mode 100755 index 0000000..fea2758 --- /dev/null +++ b/bin/irspy-update.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# wrapper for irspy.pl +# +# run irspy with a smaller set of records in a loop to avoid out-of-memory +# + +home=/usr/local/src/git +cd $home/irspy/bin || exit 2 +logdir=../tmp + +for i in 0 1 2 3 4 5 6 +do + logfile=$logdir/irspy-mod-$i.log.`date '%w'` + YAZ_LOG=irspy,irspy_test nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -a -t Main -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 + gzip -f $logfile +done +