summaryrefslogtreecommitdiffstats
path: root/gold/scoreboard/modules/available/ati_temper/gather
blob: 15f0b4f288f1dd318001ad6e968125a45a96021d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
HERE=$(dirname $(readlink -f $0))
. $HERE/../../../profile

# machine to check for
MACHINE=chinaman
MACHINE_KEY=$MDIR/keys/$MACHINE
LF=${MACHINE}_ati_temper
mkdir -p $ADIR
mkdir -p $LDIR

# write into live directory and archive
[ ! -e $MACHINE_KEY ] && echo "No Key for $MACHINE" && exit 1
echo "$(date +%Y-%m-%dT%H:%M:%S) $(ssh -i $MACHINE_KEY worker@$MACHINE '~/bin/ati_temper')" | tee $LDIR/$LF >> $ADIR/$LF