author | nipkow |
Sun, 13 Feb 2011 08:47:36 +0100 | |
changeset 41757 | 7bbd11360bd3 |
parent 41663 | 4030fcc5c785 |
child 45253 | b57523021938 |
permissions | -rw-r--r-- |
31310 | 1 |
# -*- shell-script -*- :mode=shellscript: |
31582 | 2 |
# |
22410
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
3 |
# Author: Gerwin Klein, NICTA |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
4 |
# |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
5 |
# DESCRIPTION: common settings for the isatest-* scripts |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
6 |
|
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
7 |
# source bashrc, we're called by cron |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
8 |
. ~/.bashrc |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
9 |
|
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
10 |
# canoncical home for all platforms |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
11 |
HOME=/home/isatest |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
12 |
|
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
13 |
## send email on failure to |
38250 | 14 |
MAILTO="\ |
15 |
kleing@cse.unsw.edu.au \ |
|
16 |
nipkow@in.tum.de \ |
|
17 |
berghofe@in.tum.de \ |
|
18 |
schirmer@in.tum.de \ |
|
19 |
lp15@cam.ac.uk \ |
|
20 |
makarius@sketis.net \ |
|
21 |
blanchet@in.tum.de \ |
|
22 |
boehmes@in.tum.de \ |
|
23 |
bulwahn@in.tum.de \ |
|
24 |
hoelzl@in.tum.de \ |
|
25 |
krauss@in.tum.de \ |
|
26 |
noschinl@in.tum.de" |
|
22410
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
27 |
|
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
28 |
LOGPREFIX=$HOME/log |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
29 |
MASTERLOG=$LOGPREFIX/isatest.log |
37834 | 30 |
LOGSERVER=macbroy28.informatik.tu-muenchen.de |
22410
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
31 |
|
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
32 |
ERRORDIR=$HOME/var |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
33 |
ERRORLOG=$ERRORDIR/error.log |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
34 |
|
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
35 |
RUNNING=$HOME/var/running |
da313b67a04d
moved all isatest/cron job related files to own directory
kleing
parents:
diff
changeset
|
36 |
|
28567
3caee0cd91d8
change DISTPREFIX to not use yet another filesystem
kleing
parents:
28539
diff
changeset
|
37 |
DISTPREFIX=$HOME/isadist |
28539
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
38 |
|
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
39 |
# this function avoids NFS inconsistencies with multiple writers by |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
40 |
# sshing to one central machine and writing locally. There is stil a |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
41 |
# race condition, but at least it should not corrupt a whole set of entries |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
42 |
# any more. |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
43 |
function log() |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
44 |
{ |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
45 |
MSG="$1" |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
46 |
TIMESTAMP="$(date)" |
bdb308737bfd
do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents:
24782
diff
changeset
|
47 |
echo "[$TIMESTAMP $HOSTNAME $PRG]: $MSG" | ssh $LOGSERVER "cat >> $MASTERLOG" |
28567
3caee0cd91d8
change DISTPREFIX to not use yet another filesystem
kleing
parents:
28539
diff
changeset
|
48 |
} |