From: Wolfram Schneider Date: Tue, 27 Apr 2010 15:46:47 +0000 (+0000) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/irspy X-Git-Tag: CPAN-v1.02~77 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=07cf09b527d29c8fcd7732c93e8136a0f5d668bd;hp=2bb11f5efaf3050bc111515f86abb2a3326327db Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/irspy --- diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh index a29d167..58e401d 100755 --- a/bin/irspy-update.sh +++ b/bin/irspy-update.sh @@ -9,6 +9,7 @@ home=/usr/local/src/git cd $home/irspy/bin || exit 2 logdir=../tmp lockfile=../tmp/irspy-update.lock +: ${irspy_test=Main} if [ -f $lockfile ]; then pid=`cat $lockfile` @@ -19,10 +20,13 @@ if [ -f $lockfile ]; then fi echo $$ > $lockfile || exit 2 +weekday=`date '+%w'` 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 + 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 $irspy_test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 + + sleep 1 # catch ctr-c before compressing the log gzip -f $logfile done