X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=bin%2Firspy-update.sh;h=8c2554dcee42f433f6b12c33c5a28364dfa08fe2;hp=5de406d5b161c387400b3cd0c34719e8b9fb53f6;hb=46b8fe7f37d17b22e9235d4d93ca0f7a0af36382;hpb=e6d82246c121fb15021d5742f37680466723f601 diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh index 5de406d..8c2554d 100755 --- a/bin/irspy-update.sh +++ b/bin/irspy-update.sh @@ -9,8 +9,7 @@ home=/usr/local/src/git cd $home/irspy/bin || exit 2 logdir=../tmp lockfile=../tmp/irspy-update.lock -#test=Quick -test=Main +: ${irspy_test=Main} if [ -f $lockfile ]; then pid=`cat $lockfile` @@ -25,7 +24,7 @@ weekday=`date '+%w'` for i in 0 1 2 3 4 5 6 do logfile=$logdir/irspy-mod-$i.log.$weekday - YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -a -t $test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 + YAZ_LOG=irspy,irspy_test,irspy_task nice -10 time perl -I../lib irspy.pl -n 50 -d -M 3500 -a -t $irspy_test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 gzip -f $logfile done