#!/bin/sh

database="fat-dbs"
computers="mdfl1-hub1"

echo
echo starting multimon.py and lux.py at `date`
echo

cd /mnt/data/testdaq/monitoring
year=$(date +%Y)
month=$(date +%m)
day=$(date +%d)
mkdir $year
cd $year
mkdir $month
cd $month
mkdir $day.lux
cd $day.lux

nohup multimon.py -H ${database} -S normalFAT -o $HOME/monitoring/$year/$month/$day.lux ${computers} &
sleep 30
#nohup ~/bin/lux-mdfl1.py  -o $HOME/monitoring/$year/$month/$day.lux &
nohup ~/bin/lux.py  -o $HOME/monitoring/$year/$month/$day.lux &

