#!/bin/sh
 
echo
echo starting multimon.py at `date`
 
#database="157.132.42.221"
database="sps-testdaq01"
#computers="sps-ichub21 sps-ichub29 sps-ichub30 sps-ichub38 sps-ichub39 sps-ichub40 sps-ichub49 sps-ichub50 sps-ichub59 sps-ithub01 sps-ithub02"
computers="sps-ithub01" 
 
 
mkdir -p $HOME/monitoring
cd $HOME/monitoring
 
year=$(date +%Y)
month=$(date +%m)
day=$(date +%d)
 
mkdir $year
cd $year
mkdir $month
cd $month
mkdir $day
cd $day
 
nohup multimon.py -H ${database} -S normalFAT -o $HOME/monitoring/$year/$month/$day ${computers} &
 
#mv $HOME/monitoring/$year/$month/$day $HOME/monitoring/$year/$month/$day.newmultimon
 
#mkdir $HOME/monitoring/$year/$month/$day
#cd $HOME/monitoring/$year/$month/$day
 
 
#nohup multimon.py -H fat-dbs -S DESY -o $HOME/monitoring/$year/$month/$day fathub2 &
