From: Wolfram Schneider Date: Tue, 27 Apr 2010 10:39:50 +0000 (+0000) Subject: use the same weekday for all runs X-Git-Tag: CPAN-v1.02~54^2~26 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=d92eecb2e72fa1cb857bc09c710469b70ee3c855;p=irspy-moved-to-github.git use the same weekday for all runs otherwise the suffix may change for a overnight run --- diff --git a/bin/irspy-update.sh b/bin/irspy-update.sh index a29d167..5de406d 100755 --- a/bin/irspy-update.sh +++ b/bin/irspy-update.sh @@ -9,6 +9,8 @@ home=/usr/local/src/git cd $home/irspy/bin || exit 2 logdir=../tmp lockfile=../tmp/irspy-update.lock +#test=Quick +test=Main if [ -f $lockfile ]; then pid=`cat $lockfile` @@ -19,10 +21,11 @@ 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 $test -m 7,$i localhost:8018/IR-Explain---1 > $logfile 2>&1 gzip -f $logfile done