Admin/isatest/isatest-settings
author wenzelm
Tue, 21 Jul 2015 14:07:06 +0200
changeset 60763 b8170925c848
parent 58440 07505e95db40
permissions -rw-r--r--
avoid lxbroy2, lxbroy3, lxbroy4, which are often busy with other processes;

# -*- shell-script -*- :mode=shellscript:
#
# Author: Gerwin Klein, NICTA
#
# DESCRIPTION: common settings for the isatest-* scripts

# source bashrc, we're called by cron
. ~/.bashrc

# canoncical home for all platforms
HOME=/home/isatest

## send email on failure to
MAILTO="\
kleing@cse.unsw.edu.au \
nipkow@in.tum.de \
berghofe@in.tum.de \
lp15@cam.ac.uk \
makarius@sketis.net \
blanchet@in.tum.de \
boehmes@in.tum.de \
bulwahn@in.tum.de \
hoelzl@in.tum.de \
krauss@in.tum.de \
noschinl@in.tum.de \
kuncar@in.tum.de \
ns441@cam.ac.uk \
traytel@in.tum.de"

LOGPREFIX=$HOME/log
MASTERLOG=$LOGPREFIX/isatest.log
LOGSERVER=lxbroy10.informatik.tu-muenchen.de

ERRORDIR=$HOME/var
ERRORLOG=$ERRORDIR/error.log

RUNNING=$HOME/var/running

DISTPREFIX=$HOME/isadist

HOSTNAME="$(hostname -s)"

# this function avoids NFS inconsistencies with multiple writers by
# sshing to one central machine and writing locally. There is stil a
# race condition, but at least it should not corrupt a whole set of entries
# any more.
function log()
{
  MSG="$1"
  TIMESTAMP="$(date)"
  echo "[$TIMESTAMP $HOSTNAME $PRG]: $MSG" | ssh $LOGSERVER "cat >> $MASTERLOG"
}