#!/bin/bash

INSTALLDIR=/home/panstarrs/ipp/who_uses_the_cluster
$INSTALLDIR/_who_uses_the_cluster.sh
echo "Sleeping 17s"
sleep 17
CLUSTERMONITORDIR=~/htdocs/clusterMonitor
mkdir -p $CLUSTERMONITORDIR
/bin/rm -f $CLUSTERMONITORDIR/top.html
#/bin/mv -f $CLUSTERMONITORDIR/top.html $CLUSTERMONITORDIR/top_`date +"%Y%m%dT%H%M"`.html
$INSTALLDIR/_who_uses_the_cluster_analyze.pl > $CLUSTERMONITORDIR/top.html

